Jump to content

Data Tag If/Then formula?


Recommended Posts

If I understand you correctly a more straightforward option might be to just enter 'Particle Board' in (for example) the 'Description' field for the Material: then, depending on the formula you used, you could return either 'PB' or 'Particle Board' in your tags/worksheets depending on what you wanted to see at any one time.

Link to comment

The best way to do IF/Then in a Data Tag is by using the Worksheet IF command. I think you are already familiar with this from using it in worksheets.

 

In a DataTag formula you enter it as:

 

#WS_IF(condition, true value, false value)#

 

Inside the function (between the #WS_ and the end #) you have to use pure worksheet functions.  You can't use Data Tag nomenclature inside the #WS_ # block.

 

Ask again if you need more help.  Or even better, post a file with your data tag format and a couple of your PB objects so we can make sure we are offering the correct solution.

Link to comment
49 minutes ago, Bruce Kieffer said:

Can you explain how I make the Material Description field appear as the tag data?

 

For example:

 

The Material settings:

Screenshot2023-12-15at19_35_05.thumb.png.a9b057385872d84c743e7db135b5cbb3.png

 

The Data Tag settings:

Screenshot2023-12-15at19_34_07.thumb.png.35d26d024f1fffbbb71e62b1f1fd5434.png

 

The Data Tag in action:

Screenshot2023-12-15at19_34_26.thumb.png.3a4cce448b8c9064dbba97612cd7a231.png

 

There is tons of useful data you can attach to Materials. Here is the full list of values you can return using the formula above (from Worksheet Functions) :

Screenshot2023-12-15at19_37_59.thumb.png.a76d40aa9e695b2d38581b1b472e6f97.png

 

  • Like 1
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...