I’m trying to run a simple action to test whether a $Name contains either of the strings (NW) or (SW), and then ticking or unticking $NWOnly and $SWOnly accordingly.
The issue seems to be a line break inside the if(){... statement. I know there are a number of differing styles of laying out conditional code statements, but it seems–possible as a side effect of recent code parser improvements that not all such styles are understood. I generally used this form:
if(condition){
// code
}else{
// code
};
Indenting between the { ...} should not matter, not white space immediately before/after the curly braces. But, I think a line break before { is currently problematic.
I was baffled, because the .contains worked fine in an Agent Query, so I couldn’t see how it wouldn’t work in a stamp… but it was the if() that was causing the problems as you say.