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

GDL
About building parametric objects with GDL.
SOLVED!

How to use Autotext in IF statement condition?

LeeJaeYoung
Virtuoso
LeeJaeYoung_0-1686385523786.png
aa = "<NOTES>" 

 

if  aa = "222" then
      text2 0,0, 11111
endif 
 

This if statement doesn't work.

The intent is to lock the GDL.
They say they want to prove that they belong to our company by putting in the company name and phone number and making it not work if it is different from this.

If not, I would like it to be.

 
 
 

As I tested, the value is not changed, but only calculated with "<NOTES>". The number of characters is 7, and the values of strsub 1 and 2 are "<N".

It seems that there is a way to get the value from request etc.
Is this an unsolvable problem?
Should I add it to my wishlist?

AC27 on window 11
11 REPLIES 11
Solution
Jochen Suehlo
Moderator

Have you seen this Website: https://gdl.graphisoft.com/tips-and-tricks/display-properties-with-labels
There is shown how to work with properties. Is that what you are looking for?

Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de

Aaaaah yes that's what I am looking for. Thank you so much! 

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!