Hi Xander, I tried something similar to Daniel.
I have 3 fields which either contain a number value or don't.
I tried the following code to no avail:
----------
var a = $feature["Ronde1_wk"];
var b = $feature["Ronde2_wk"];
var c = $feature["Ronde3_wk"];
var x = iif( !isEmpty( a ), 1, 0);
var x = iif( !isEmpty( b ), 2, 0);
var x = iif( !isEmpty( c ), 3, 0);
var list = [x,y,z];
return Max( list )
----------
When testing in the arcade module it returns either 0,1,2 or 3 like you would expect.
When I am to apply set expression the module only returns 0 and 1.
I tried applying your aforementioned cascaded if statement but i had no succes.
I had no succes with DefaultValue instead of isEmpty either (making the if statement (a > 0))
Is there somehting I'm missing?