+If button on Editor Window in 4.1.2 GUI

xordevoreaux
03 Oct 2010, 14:56
If you open up the script Editor window, it defaults to print message. I hit the +IF button at the top to change it to an If statement, define my statement, hit OK.

At that point, soon as you hit OK, take your hand off the mouse and stare at the screen.

The script Editor window shows a blank IF... statement in the list of statements at the top, with the If Then Else windows filled in for whatever you just built.

Bug: If you hit the +IF button again, rather than coming down a line to create another If statement for you to build, it wipes out the current one you just built.

Bug: If, rather than hitting the +IF button, you click the Add More > button in the lower right-hand corner of the dialog box, you get a new default print message window. You don't want a print message window, you want another If statement. So without clicking anything anywhere else, you click the +IF button, an empty Print "" message is created with a new If statement below it.

Bug: If, to prevent the above, you hit OK after creating the first If Statement (and you're staring at the blank If... message at the top of the screen)
... then click Add More > to create the next statement (it's a new default print message)
... then click the new blank statement's line where it's listed in the top statement window
... then click the +IF button, it STILL creates a blank Print "" and forces a new if statement in a new line. At the least, you've having to go back and delete extraneous blank statements.

You should be able to hit the +IF button, create your statement block in the script editor window, hit OK, hit +IF again, and it takes you down to a new If statement line, not wipe out the one you've just created. I thought it was just me not knowing what to click when, but every combination I try fails to advance the +If to the next line.

Alex
03 Oct 2010, 17:49
You're right, the behaviour is a bit odd. I'll see if I can make it more logical in v4.1.3.

In the meantime, just create your "if"s and then delete the extra blank "Print" commands.