User id in "visibility" property

Sorry for the newbie question.
How can I set the visibility of a pannel in function of the user id?

Using advanced syntaxes, for example writing this in the visibility property:

JS{

if (env.id == "foo") {
  return true
} else {
  return false
}

}

Note: the env variable contains the client options

I tried what you suggest:
in pannel_1 visibility:
JS{
if (env.id == "1") {
return true
} else {
return false
}
}
in pannel_2 visibility:
JS{
if (env.id == "2") {
return true
} else {
return false
}
}
and if I load the client with:
http://127.0.0.1:8080?id=1 or http://127.0.0.1:8080?id=2
nothing changes…

I have this error in the console;
p01.visible JS{} error at ligne 3: ReferenceError: env is not defined

Wait ! I misread the docs :wink: it should be globals.env instead of env

it works!
Thanks a lot!

I have now another problem, when I write the code @{parent.id}/@{this.id} in the 'value' parameter, the text updates to 'p02/l01' but when I restart Open Stage Control, the text return to 'p01/l01', ignoring the id of the parent. Thats the same when I open a client… If I rewrite the code, the value updates.
That is the same problem with osc address.

The value issue doesn't occur here. If you have multiple clients connected to the server, it might just be a synchronisation issue (connecting clients automatically get synced to other clients (as per General mechanics - Open Stage Control), try closing all clients before loading the session.

I can't reproduce the issue with the address either.