Better logic expression

I want to make an expresion with Better logic card Math.js. I don’t get it working. Is it possible? An example of my expression is:
(Not(AanwezigPiet) or SlaapPiet) and (Not(AanwezigAnne) or SlaapAnne)

Regards Ton

U can do this in the flows with the logic card in the AND section.
Like AND Piet is not at home OR piet is sleeping.

I made this flow For Everybody is going to sleep

My expression is now, and it is working.
(not(AanwezigPiet) or SlaapPiet) and (not(AanwezigAnne) or SlaapAnne)