James Russell Posted May 17, 2010 Share Posted May 17, 2010 Hey all, Just wondering if someone could give me a breakdown of the usage of the IF command in vectorscript. I am trying to do something like this: If x=y Then a:=1; b:=2; Else c:=1; a:=4; Just as an example could someone show me correct layout and syntax? I've been playing and searching but IF isn't the best keyword for searching. Cheers, James Quote Link to comment
Vectorworks, Inc Employee klinzey Posted May 17, 2010 Vectorworks, Inc Employee Share Posted May 17, 2010 (edited) The corect syntax would be: If (x=y) Then Begin a:=1; b:=2; End {<- Note NO ;} Else Begin c:=1; a:=4; End; To get started take a look in the Help for the VS Language Guide, it will give you some basic examples. Edited May 17, 2010 by klinzey Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.