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
flagisfalsewhen the script is called. - Also, the
flagvalue 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?