Hello, everyone
For example, my instance is called @Instance@ID.
Is there a way to check if half of the name matches, then the result is true.
I think also to add in autoload, but there will be many types of instances.
What’s your suggestion?
You can use the String functions
begins_with() ends_with()
If the string begins or end with the same string each time.
If it doesn’t, then check out the RegEx class, in particular capturing groups to check if a string matches the regular expression and capturing sub-strings for id’s and such.
Hi, Also, if you just want to know your instance name has the word Instance in it, you can use in
in
Something like:
if "Instance" in object.name: