You can add local variables to methods. Local variables can be used for internal processing, or to return data from the method.
To allow a method to return a value, define the ‘ReturnType’ property for the method. And then include a ‘Return’ logic command in the method logic to return an appropriate attribute or variable.