Notifications
Clear all
[Closed] Finding minimum with Expression Controller?
Feb 10, 2013 8:14 pm
I’m trying to find the lowest value of a group of values using an Expression Controller. The Min function works, but only for comparing two values as far as I can tell.
min(val1,val2) -- works
min(val1,val2,val3) -- throws parsing error
Is there another way of comparing more than two values to return the lowest that will work in expression controller syntax? Or do I have to use a Script Controller?
4 Replies
3 Replies
Expression controllers don’t let you use MXS syntax so I couldn’t figure out a way to find the minimum of an array like this. But thank you.
This seems to work though! I didn’t know / never thought of daisy-chaining them like this. Thanks for both your answers