problem with if istruction.
Hello everybody,
I need help
how to set if instruction in case where the final part of a condition is equal.
I mean I have many strings like AD01, AD02, AD03, AD04 and then C100, C101, C102 and so on, I tryed to set in this way:
if (mat == "AD*" || mat == "C*") some thing ... but not working
How can I set my condition instead to set many times if (mat == "AD01" ||
mat == "AD02"
||
mat == "AD03"
||
mat == "AD04")?
Thanks in advance.
Tegatti