A conditional splicing problem

now there is a problem like the figure, and there is a relational operator between condition 1 and condition 2. (AND or OR), there may be many small conditions under each major condition, such as in the condition 2 box. Now you need to write an interface, get the conditions shown in the figure, and do the operation. If the conditions selected by the front-end users are shown in the figure, what kind of conditional format is better to pass to the back-end for processing?

Php
Mar.07,2021
The most direct way of

is that you assemble it and pass it to the backend


unix system for another interesting file control, such as chomd 7. And the point of this number is that
can run
1 read permission 2 write permission 4 run
then
0 means no permission
1 represents read
2 represents read
3 represents read 1 + write 2
4 represents run
5 represents read 1 + run 4
6 represents write 4
7 represents read + write 2 + run 4
it is interesting that seven numbers are enough to represent so many things
that As long as the front and back end agree on how to transmit the data, isn't it up to you

Menu