Is There a Way to Use a Variable in Compare?

I have a list local_PrefixList and would like to verify that a variable local_Prefix is contained within the List. If I key in just the name instead of the variable it works.

If this is not possible any suggestions on how to work around it?

Test.kmmacros (5.5 KB)

Thanks
Roger

I don't think it's the name "local_Prefix" that you are testing for – more likely to be the string value attached to that variable name:

3 Likes

Thanks

Roger