BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
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
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), 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
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), 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
Learn and get certified!