Hi,
I would prefer to display some sitemap rows only if visibility = internal.var.status as number.
Comparison to constant is working well.
visibility=[Usercode==1111]
I prefer to define only once some internalvar, common used for visibility comparison.
visibility=[Usercode==internalvar.state as number]
Yes sorry.
You can set the visibility according to another item but not comparing to another item.
There is a workaround though
You need a proxy item:
items
Number myItem
Switch myItem_Visibility
rule
rule "myItem Visibility"
when
Item myItem changed
then
if (myItem.state >= someVariable) {
myItem_Visibility.postUpdate(ON)
} else {
myItem_Visibility.postUpdate(OFF)
}
end