SET VAR with C# String

Hello I am trying to set a VAR but its giving me the error

“The name ‘myString’ does not exist in the current context”


The LOG Function does print out the exception.

[FIXED]: Had to put the keycheck inside of the { }

Yes, the scope of variables is important. If you declare something inside an IF or FOR (etc.) it will not exist outside of it. If you need it outside, declare it before you enter the statement/loop.

1 Like