Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
conditional: check if key is empty #2489
I need to express that "if isempty(a) then istrue(b)".
Is this possible with conditionals?
How to say "isempty"? ("isempty" refers to if it contains a string with length 0)
Does "istrue" also work if the keys are yes/no? (Together with the boolean plugin. Maybe we need another ordering here?)
If you mean that if a is empty b must be true, I guess (haven't tried it) setting this on key a should work
But I think the whole
Yes, it may work but I never tried it, thus I ask.
Thank you for the code!
Yes, I agree.
It is only for one situation: If two plugins of the same type (like it is the case here: boolean and conditionals are both validation plugins) have requirements that one must be before the other. Otherwise a different placement should be chosen.