We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

GDL
About building parametric objects with GDL.
SOLVED!

The title indicates that the variable value is blank.

LeeJaeYoung
Virtuoso

LeeJaeYoung_0-1701764882322.png

if "<Dong Name>" = "" then

     text2 0,0,1

else

     text2 0,0,2

endif

 

Number 2 appears. Even if you use "#", you get the same result.
How do I know if the space is blank?
The title indicates that the variable value is blank.

LeeJaeYoung_1-1701765157444.png

 

AC27 on window 11
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Barry Kelly
Moderator

As far as I know, GDL can not read the value of the Project Info variables

That is probably why you can't determine if it is empty or not.

 

All GDL can do is display the value.

It will be blank if it is empty.

 

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

View solution in original post

2 REPLIES 2
Solution
Barry Kelly
Moderator

As far as I know, GDL can not read the value of the Project Info variables

That is probably why you can't determine if it is empty or not.

 

All GDL can do is display the value.

It will be blank if it is empty.

 

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

Yes, you have to turn it on/off as an option.

AC27 on window 11