Looks OK to me.

You could try g.screen instead of l.settings:page:code or

'prod' EQ tolower(l.settings:page:code)
...