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: 

if (A > B, B, A) but ignore 0

2 ANTWORTEN 2
GELÖST
Antworten
Nachricht 1 von 3
arsham
191 Aufrufe, 2 Antworten

if (A > B, B, A) but ignore 0

hi all,

i have a situation that i need to write a formula to pick the prameter which is smaller, but ignore 0s.

so for instance, if A is 8 and B is 6, i want it to be B, but in most cases B is zero so i want it to be A.

how can i make a exception for 0 ?

2 ANTWORTEN 2
Nachricht 2 von 3
ToanDN
als Antwort auf: arsham


@arsham wrote:

hi all,

i have a situation that i need to write a formula to pick the prameter which is smaller, but ignore 0s.

so for instance, if A is 8 and B is 6, i want it to be B, but in most cases B is zero so i want it to be A.

how can i make a exception for 0 ?


if (and (B < A, B > 0), B, A) 

Nachricht 3 von 3
arsham
als Antwort auf: ToanDN

in @ToanDN  we trust! 

 

thanks!

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