What am I doing wrong in this IF statement - Forum

Forum Navigation
You need to log in to create posts and topics.

What am I doing wrong in this IF statement

Please see picture

If [unitgroup] == 1
SetVar [EUR] 0.7
SetVar [unitgroup] 1 Elektrisk mindre mono(TE/TEK/MONO)
Else

EndIf

 

Uploaded files:
  • You need to login to have access to uploads.

@soren-weitling please note you need to use quotes for text strings:

If [unitgroup] == 1
SetVar [EUR] 0.7
SetVar [unitgroup] "1 Elektrisk mindre mono(TE/TEK/MONO)"
Else

EndIf

Also note that, when you double-click a command, VIsualNEO Web will show you the command wizard that will allow you to fix any syntax problem.
Regards.

Soren Weitling has reacted to this post.
Soren Weitling

Silly me of course.  Thanks a lot