|
|
|||||||
Hi all, Can I use wildcards in the @USERID-macro? Example: If @USERID = "*Doe" would match both JohnDoe and JaneDoe |
||||||||
|
|
|||||||
No, but you can try one of these. The RIGHT method is more likely to be correct, because the INSTR method could match things like DOEW, DOES, or DOESN'T too, in which case it would be matching things you don't want. Code: if instr(@userid,"DOE") ;do stuff endif if right(@userid,3)="DOE" ;do stuff endif |
||||||||
|
|
|||||||
Thanks and sorry for the late reply. "if right" was the way to go. |