When playing with data tags recently, I came across the fact that logical statements can be used in the tag field definition. The Vectorworks Help gives two syntax examples for a logical IF statement:
I can't seem to make the first syntax work. I have two circles that are exactly the same (with a record attached that has an INT "Number" field), and have replicated the first syntax in the top data tag and the second syntax in the bottom tag:
The first syntax is a little more intuitive (for me, at least) which is why I'd like to use it, but if it isn't a valid statement I'll go with the second syntax. I did try removing the single quotes from around the numbers, figuring this might change the variables to INTs instead of strings, but to no avail...Can anyone replicate this? Is this syntax invalid?
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.
Question
Eliot Hartzler
When playing with data tags recently, I came across the fact that logical statements can be used in the tag field definition. The Vectorworks Help gives two syntax examples for a logical IF statement:
VW2021 Help - Data Tag Page
I can't seem to make the first syntax work. I have two circles that are exactly the same (with a record attached that has an INT "Number" field), and have replicated the first syntax in the top data tag and the second syntax in the bottom tag:
The first syntax is a little more intuitive (for me, at least) which is why I'd like to use it, but if it isn't a valid statement I'll go with the second syntax. I did try removing the single quotes from around the numbers, figuring this might change the variables to INTs instead of strings, but to no avail...Can anyone replicate this? Is this syntax invalid?
Link to comment
1 answer to this question
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.