Here are two ways of calling callscript
(in pseudocode):
using duplicate calls
if flag == true
flag = false
callscript
flag = true
else
callscript
endif
using an extra variable
flag2 = flag
flag = false
callscript
flag = flag2
conditions
- I have to make sure is that
flag
isfalse
when the script is called. - Also, the
flag
value has to be restored to the original value.
Is there a better way to do this than these two? If not, which one of these is a better choice?