Before update 4, a script like:
Code: Select all
.key FLAG/S
If <FLAG>
Dir
EndIfIt would be great if a fix to this made it to update 5. Thanks in advance
Code: Select all
.key FLAG/S
If <FLAG>
Dir
EndIf
I did not know this had already been discussed before.tonyw wrote:We've been through this before. Your syntax "if <flag>" is undefined and thus liable to change. The "If" statement demands a comparison, not a single value to test.
I think you mean 'if <flag> NE "" '

The shell docs have always been correct.xenic wrote:EDIT: O.K I guess I was wrong too. The shell docs indicate that the correct test is:
IF <FLAG> EQ FLAG (True if the FLAG keyword was entered)