twee3-language-tools
twee3-language-tools copied to clipboard
Checking if temporary variables are defined
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