I don't know if the existing and/or logic block can be modified to accept a value (as its a core Blocky block) but there is a simple workaround in 2.0.0
which generates
I sort of like the workaround as it signals that the code is diving into JS territory and so is the equivalent of having a sign saying "Beware the dragons beyond this point"