Jump to content
  • 0

DATA TAGS and IF expressions


The Hamma

Question

9 answers to this question

Recommended Posts

  • 0

Ok next issue.  I can make two options work with the YES@CONDITION:NO .  But when I try to divide space number field with a number that I placed in the user field it only displays it displays it as text. 

 

Input

#Space#.#Area##doc area_3_0#/#Space#.#11_User-Def Info 2#

or

#Space#.#Area##doc area_3_0#/#Space#.#11_User-Def Info 2##VAL#

or

#Space#.#Area##doc area_3_0#/#Space#.#11_User-Def Info 2##INT#

 

Output 

100/15 instead of 6.66

 

How do I force the tag to read #Space#.#11_User-Def Info 2# as a number rather than text?

Link to comment
  • 0

Since this thread started in VW2021, Worksheet functions have been added to Data Tags.

 

So you can now use nested worksheet style IF statements. Remember that once you use the #WS tag, everything until the next # has to use worksheet notation not Data Tag notation. So you can't mix and match formats.

 

#WS.IF(Condition, Result if True, IF(Second Condition, Result if Second True, Result if Second False))#

Link to comment

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.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...