Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.
SOLVED!

IF-OR-THEN Statement

Lingwisyer
Guru
Hi all,

I appear to be unable to create an IF-OR-THEN Statement. When I try, the statement is ignored...

If _clean = 1 then
	If GLOB_VIEW_TYPE = 4 or 5 then
			_status = 8
		else
			_status = 15
	endIf
endIf

I would rather not need to duplicate the statement for each case...



Ling.

AC22-28 AUS 3001Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
11 REPLIES 11
Barry Kelly
Moderator
It might not be the status variable that is undefined?

I just tried this and apart from the missing materials there are no errors.


Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Lingwisyer
Guru
That is odd. The materials generate properly for me so I did not think it was the materials causing the error. That and the fact that the error only pops up when I do not define _status in the parameters...



Ling.

AC22-28 AUS 3001Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660