Conditional statement(text) in Tag

Conditional statement(text) in Tag

Anonymous
Not applicable
2,494 Views
7 Replies
Message 1 of 8

Conditional statement(text) in Tag

Anonymous
Not applicable

Hi everybody,

 

I'm trying to do a tag with a conditional statement in a formula.

Can I do something like that?

Capture.PNG

 

I wouldn't like to show the quality value in the tag when this value is equal to "C30/37" in a column.

 

Thank you in advance

 

0 Likes
Accepted solutions (1)
2,495 Views
7 Replies
Replies (7)
Message 2 of 8

ToanDN
Consultant
Consultant
Text parameters cannot be used to drive a formula.
0 Likes
Message 3 of 8

martijn_pater
Advisor
Advisor

You need an on/off shared parameter "C30/37". Then a text shared parameter which checks the other.

<C30/37 on/off parameter> = true / false
<text parameter> = if (<C30/37>, " ", "quality strenght")
...or if(not(<C30/37>),"quality strenght"," ")

0 Likes
Message 4 of 8

RDAOU
Mentor
Mentor

 

The principle as mentioned by @martijn_pater is correct, however, use a different naming style for parameters

  • you cannot name parameters using special characters > < [ ] : ? \ 
  • you shouldn't include computational syntax in parameters name     - + / * 

YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION


0 Likes
Message 5 of 8

martijn_pater
Advisor
Advisor

@RDAOU wrote:

 

The principle as mentioned by @martijn_pater is correct, however, use a different naming style for parameters

  • you cannot name parameters using special characters > < [ ] : ? \ 
  • you shouldn't include computational syntax in parameters name     - + / * 

Ha, that's funny.:) Those are just <input parameter here> brackets, I guess someone could misread those... 

Message 6 of 8

RDAOU
Mentor
Mentor

...

YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION


0 Likes
Message 7 of 8

martijn_pater
Advisor
Advisor
Accepted solution

...as to say you are right to point that out. Also I think I switched the text returned by the if statement, so let me rephrase and use some color;

You need an on/off parameter, let's say MySharedParameter1. And another text parameter, let's say MySharedParameter2. Shared parameters for scheduling.

MySharedParameter1 = true / false
MySharedParameter2 = if (MySharedParameter1 ,"quality strenght", " ")
...or if(not(MySharedParameter1 )," ","quality strenght")


Feel free to mark as solution and @RDAOU in addition. ^^

Message 8 of 8

Anonymous
Not applicable

Then, I need another parameter.

Ok. Thank you all.

 

0 Likes