Forum

Thread tagged as: Question

Multiple Conditional Values

Just wondered if it's possible to do multiple conditional values yet?

e.g. <perch:if id="stock_status" match="eq" value="{2 OR 4}"> Use case in Shop: Stock status 'low stock: 2' OR 'more stock ordered: 4' -> disable the Add to cart button and display message "Low stock"

Also referenced here: https://forum.grabaperch.com/forum/12-03-2014-multiple-value-conditional

Chris Henry

Chris Henry 0 points

  • 4 years ago
Duncan Revell

Duncan Revell 78 points
Registered Developer

You've always been able to use match="in"

Hi Duncan

Don't know why I didn't think of that - nice one, thanks :)