Jump to content

If function in a data tag


Gal

Recommended Posts

I don't think IF is a valid Data Tag function value. You either have to use the Trinary function or use a worksheet if.

 

Quote

This is a perfect case for the Data Tag version of If/Then, also referred to the trinary operator.

 

Put the result if true before an @ sign and the result if false after a colon (:) and put the test value in the middle.

 

So something like:

 

'OBS'@#WinDoor 6.0#.#Opaque Glass#:''

 

So in your case:

#∆X#@#∆X#>#∆Y#:#∆Y#

 Be careful because any extra spaces can impact the operation.

 

Alternatively you could use a Worksheet IF, but I am not certain what you would need to get the ∆X and ∆Y values into the the worksheet format.

 

#WS_IF(condition, Value if True, Value if False)#

 

But you can not use the Data Tag hashtag surrounded format inside the WS function. It has to be pure worksheet definition.

 

HTH

  • Like 2
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
Reply to this topic...

×   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...