Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

I'm new at boolean, not quite getting the AND statement to work

4 ANTWORTEN 4
GELÖST
Antworten
Nachricht 1 von 5
chris.stroudWUD5J
360 Aufrufe, 4 Antworten

I'm new at boolean, not quite getting the AND statement to work

So Heres what i'm trying:

 

IF <BLOCK VISIBILITY> IS ON/OFF, DO X. IF BOTH <BLOCK VISIBILITY> AND <CORE VISIBILITY> ARE OFF, DO Y

 

I can get the first part to work just fine, but i'm struggling with the underlined part, I've tried a bunch of ways and got a bunch of different errors, i'm just too new at this sort of thing to understand the correct syntax.

 

so here's what i'm trying:

 

syntax.PNG

the line in core name isn't important for the moment, that works

 

Does the second part need to be a new line? or am i completely off?

 

Thank you.

4 ANTWORTEN 4
Nachricht 2 von 5

Alright, i just figured it out.

 

Turns out the AND statement should have been the answer to the NO part of the first part:

 

if(BLOCK VISIBILITY, 38 mm, if(and(BLOCK VISIBILITY, CORE VISIBILITY), 38 mm, 4 mm))

 

:leicht_lächelndes_Gesicht:

Nachricht 3 von 5
Ilic.Andrej
als Antwort auf: chris.stroudWUD5J

I assume you want to do OR statement and you don't know that it exists. Yes, it exists.

 

if(or(block visibility,core visibility),x,y)

If any one of those is checked, do one thing. Otherwise, do another...



Andrej Ilić

phonetical: ændreɪ ilich
MSc Arch

Autodesk Expert Elite Alumni

Nachricht 4 von 5
chris.stroudWUD5J
als Antwort auf: Ilic.Andrej

Hey thank you very much, that'll come in hand for the next thing I need to do :leicht_lächelndes_Gesicht:

Nachricht 5 von 5
bin
Advisor
als Antwort auf: chris.stroudWUD5J

Maybe this?

if(and(not(BLOCK VISIBILITY),not(CORE VISIBILITY)),Y,X)

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report