BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

Parametric design
About Rhino & Grasshopper and PARAM-O.

Logic operators in PARAM-O / inverting boolean value?

PVBergkrantz
Expert

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
Advocate

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

 

Expression (Graphisoft.com)

 

 

BIMquants.comBETA - Quantities and Costs Estimation with Archicad AddOn :: rushing to publish a beta preview

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 |

Learn and get certified!

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!