twee3-language-tools icon indicating copy to clipboard operation
twee3-language-tools copied to clipboard

Checking if temporary variables are defined

Open SjoerdHekking opened this issue 3 years ago • 0 comments

Since temporary variables are locally used within the same passage or <<include "passage">> it might be useful to have a sanity check whether or not the temporary variable has been set. Consider the following code: <<set _tempVar to "python">> <<if _temp is "python">> Python is amazing! <</if>> Of course, this wouldn't play, but since these are used locally defined, T3LT could check against whether or not it exists. Since a safety net could've helped me spend an hour less on finding why my code didn't function as expected.

Yours sincerely, Sjoerd Hekking

SjoerdHekking avatar Apr 01 '21 15:04 SjoerdHekking