Multiple Mathematical operations

I want to extract the doors that have height greater than or equal to 6’ but less than 6’-6". I am unable to do that. Can anyone help me with this?

Get the parameter value for height, the filter those over 6’ with FilterByBooleanMask and then do it again with those under 6’8".

Could probably do it in design script as well with something like the following in a code block

x>6 or x<6.66 ? true : false

3 Likes

Hi,

I have issues, how is the correct syntex for “Or”?
Actualy i tried Python:


Val = []

for i in IN[0]:
	if i <= 100 or i >= 1000:
		Val.append(i)
	pass


OUT = Val

KR

Andreas

Actually on second thought you’d want to use “&&” as the operator because you only want those between and not all that satisfy one condition or the other.

1 Like

1 Like

or is represented as “||”

2 Likes