I have the stringlist variable holding the patterns(i.e patterns = "tells you|shouts"). What i want is using #if test, if some string matches one of the patterns in that variable.
According to manual this should be:
#if {@SomeString =~ {@patterns} } {...}
The problem is, this solution works perfectly, but my zmud 6.16 says there's a syntax error in that line - is it 6.16 problem? or maybe i should use another syntax? Thanks
If putting the variable in the pattern won't work, the preferred method would be the %ismember function. Also, you should use (), not {}, for the #IF expression.
#IF (%ismember(@SomeString,@patterns)) {...}
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum