Conditionals in listeners
It would be great if we could have if/else conditions in listeners and in converters - this would allow for a much higher flexibility of design - letting us create dynamic and responsive layouts fully inside Rive.
I’ve been trying to create a 3×3 bento grid layout with all inner cell walls draggable and auto resizing, that would avoid any overlap…Let me tell you writing a 76 converters with most being of this nature (to use arithmetical equivalents to if/else conditionals) - its no fun at all 🙂 :
min(max(( ( ((ceil(min({{bento_vm/bool_true}},max({{bento_vm/bool_false}},(({{bento_vm/11<->12_X_seam}}-{{bento_vm/21<->22_X_seam}}-{{bento_vm/epsilon}})*{{bento_vm/huge_number}})))))*(ceil(min({{bento_vm/bool_true}},max({{bento_vm/bool_false}},(({{bento_vm/11<->21_Y_seam}}-{{bento_vm/12<->22_Y_seam}}-{{bento_vm/epsilon}})*{{bento_vm/huge_number}}))))) ) * {{bento_vm/11<->12_X_seam}}) + (( ({{bento_vm/bool_true}} - ((ceil(min({{bento_vm/bool_true}},max({{bento_vm/bool_false}},(({{bento_vm/11<->12_X_seam}}-{{bento_vm/21<->22_X_seam}}-{{bento_vm/epsilon}})*{{bento_vm/huge_number}})))))*(ceil(min({{bento_vm/bool_true}},max({{bento_vm/bool_false}},(({{bento_vm/11<->21_Y_seam}}-{{bento_vm/12<->22_Y_seam}}-{{bento_vm/epsilon}})*{{bento_vm/huge_number}})))))) ) ) * {{bento_vm/21<->22_X_seam}}) ),{{bento_vm/grid_abs_min_X}} + {{bento_vm/min_cell_dim}}),({{bento_vm/22<->23_X_seam}}-{{bento_vm/min_cell_dim}}))