OR & AND operations
-
In your documentation, you state this;
“op : (optional) The operation applied to evaluate the validity, and (default) as well as or are accepted. Indicating op=”and” requires all codes to be applied, op=”or” requires at least one to be applied.”
I haven’t been able to find examples of the exact syntax for applying this. Would it be something like:
[coupon_is_applied op="COUPON1andCOUPON2"] Will display only if COUPON1 and COUPON2 exist [/coupon_is_applied]
Also, will “nesting” work with shortcodes, such as:
[coupon_is_not_applied code="COUPON3"] [coupon_is_applied op="COUPON1andCOUPON2"] Will display only if COUPON1 and COUPON2 exist, and only if COUPON3 is not applied [/coupon_is_applied] [/coupon_is_applied]
Or, is there another different syntax to create this type of condition.
Thank you very much for the great plugin and for any clarification.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘OR & AND operations’ is closed to new replies.