I want to use test
variable in Evaluator code...
Is it possible ?
@set test=4
@set res={=Mid("123456789",{$test})=}
{dlgstringS|Test|{$res}}
I want to use test
variable in Evaluator code...
Is it possible ?
@set test=4
@set res={=Mid("123456789",{$test})=}
{dlgstringS|Test|{$res}}
@set test=4
@set res={=Mid("123456789", Val("$test"))=}
{dlgstringS|Test|{$res}}
You can also create and assign function variables directly within an evaluator like this if you wanted, not sure that would apply in your case here though. Note that the semicolon at the end of the evaluator clause seems important to not cause an error.
{=$newTestVariable="New Test Variable";=}
@Output Test Value 3 is {$newTestVariable}
If the variable will only be used in evaluator clauses you can assign it like this which I believe makes it remain in the evaluator context.
@evalalways:{value3="ExampleThree"};
And still output it if you need to like this:
@Output {=value3=}
Just realized that Val()
is not needed here to access the variable:
@set test=4
@set res={=Mid("123456789", $test)=}
{dlgstringS|Test|{$res}}