I was making a project and I had a pretty long script of if statements (it's a drawing project)
if <(tool) = [paint brush]> scripts End Etc.Eventually in one of my if statements the statement was true. But the script didn't work! I even picked out the booleans and it was all true. So I took that if statement out of the script and clicked on it. Then it worked. But when I put it back with the long script it didn't work.
Last edited by turkey3 (2012-10-09 21:35:53)
Offline
It's a good idea to use if/elses instead, like so:
if <(tool) = [paint brush]> scripts else if <(tool) = [pencil]> scripts else etc. end endand for the last one, just add the scripts into the else.
Offline
Gravitation wrote:
It's a good idea to use if/elses instead, like so:
if <(tool) = [paint brush]> scripts else if <(tool) = [pencil]> scripts else etc. end endand for the last one, just add the scripts into the else.![]()
^this. If you do this:
if <[483]=(variable)> scripts end if <not <[483]=(variable)> scripts endIt might confuse the program. Try using the script Gravitation mentioned.
Offline