This example would work, just replace your question mark with the name
of the layer in InDesign contained in "double inverted commas" - this
is a string in uPlan. Then if you apply this object to the layers you
wish to control they will be activated by the logic.
A switch would be cleaner and easier to maintain:
switch([|->CLASS])
{
case: 67
"Layer67"//Layer reference
case: 68
"Layer68"//Layer reference
default:
"default_layer"
}
This syntax may be wrong but I don't have uPlan handy right now - just
right click and insert the example switch statement, however if you
are testing a string case then the case value must be in "double
inverted commas/straight quotation marks". The default case is for
when you want to set a value that is not captured by the logic, this
is similar to the final else value in an if statement.
I'm not sure about how you'd do this with a function, we usually
create variables to simplify and normalise our logic, but I can't
recall doing any 2 jobs where the visibility setup was similar enough
to create a function. We tend to use these for currency and date
formatting.
Hope this helps.
George