I tried to use this in multiple ways and modes and the game kept spitting out: Condition has errors: true is not a function. Ternaries conditions accepts only booleans or numbers. Condition group only accepts boolean and number conditions.If you're using plain text mode or a getter black, you can reference global variables. Leaders are stored in variables S.Madam, S.DJ, and so on, by slave IDs, and empty role is a null.
The condition you need is "!S.Madam || c.slave.assignment == Job.MADAM" (or whatever other leader role you need), though I think in block mode you can check the latter part with a special block instead.
Didn't seem to matter how I tried to use it, it just would not take it.