cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

Logic operators in PARAM-O / inverting boolean value?

PVBergkrantz
Advocate

Hello, I am trying to create an object in PARAM-O that has two variants the user can choose. So I made a boolean to say "is is version 1" true/false. If its true I want to change the visibility of some objects to true and some to false, and if its false to do the opposite. That is, I want to hide some stuff and show some others. So what I want is an operator to invert the boolean value, to make true->false and false->true. A simple "not" operator would work in other programming but I'm kind of stuck trying to make it work in PARAM-O.

| AC 25 Int | Win10 | i7-7800X | 32 GB | GeForce RTX 2060 6GB |

2 REPLIES 2

Miha Nahtigal
Enthusiast

Maybe you could use an expression? Something like {not($paramName)}

 

Expression (Graphisoft.com)

 

 

I tried but it doesn't accept boolean as input, only number. I guess one workaround would be to make the user type 0 or 1 instead of checking the box but that is not ideal.

 

There's a lot of functionality still missing in the PARAM-O system. No logical operators at all as far as I can see? This makes booleans almost useless...

| AC 25 Int | Win10 | i7-7800X | 32 GB | GeForce RTX 2060 6GB |

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!