Hey guys,
I have a question, which I couldn't find anywhere in the forum. So here it is:
How can I create a new variable which have a Function Return in the variable name. It sounds worse than it is.
If the expression in the function is true, the function should return a value, which can then be used as a new variable with new content.
Important for my project: If the expression in the function is not true, i.e. there is no return value, no variable may be created.
Am I missing something? Are there easier ways?
I didn't copy the whole code, because it's an bigger project. I want to end up with a couple of variables that have the return of this function in their name.
Here's my code. Assign(), Eval() aren't working for me.
For $a = 0 To 10
Assign(test($a), "Test Variable")
Next
Func test(ByRef $value)
If $value = EXPRESSION "not important" Then
Return $value
EndIf
EndFunc