Page 1 of 1

Wildcard Question

Posted: Tue Jun 04, 2019 9:54 pm
by TheSAguy
Hi,

How do I use wildcards to identify a name?

The name starts with "bio-" and ends with "-1"
So I want to do something like:

Code: Select all

if entity.valid and entity.name == "bio-"..*.."-1" then
Where * can be anything.

Thanks,

Re: Wildcard Question

Posted: Tue Jun 04, 2019 9:59 pm
by Deadlock989
Google the Lua manual for pattern matching.