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

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

Split text

JGoode
Expert
Hello,

What I have is an object where the user can input a link.
What I would like to do is tell if the string contains "www." or "http" at the beginning.

How can I achieve this? I assume it would be by using the split function.

Thanks
ArchiCAD 23

Windows 10
1 REPLY 1
Jochen Suehlo
Moderator
IF STRSTR(_link_name, "www.") OR STRSTR(_link_name, "http://") THEN ...
tells if the string contains the substring.
With STRSUB you can check the position of the substring.
Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de