4 values switch, to modify CC sent by 8 knobs matrix

So... with one button to change CC sent by my 8 knobs matrix, i had this in the props field :

"preArgs": "[1, #{@{button_id} ? 70 + $: 16 + $}]",

That's ok, and i understand it.

But now... i need not only one button, but a 4 values switch... to change CC sent.
switch value 1 -> first CC = 16, channel 1
switch value 2 -> first CC = don't know yet...
switch value 3 -> first CC = 57, channel 14
switch value 4 -> first CC = 70, channel 1

I was about to use this kind of script in the script field / or props field:

if(get('switch')==1) send('/control',1,#_{16+get('$')},get('knob#{$+1}'))
if(get('switch')==2) send('/control',...,...,...)
if(get('switch')==3) send('/control',14, 57+$,...)
if(get('switch')==4) send('/control',1, 70+$,...)

But once again... i'm lost... on how to formulate the whole thing... so... any help appreciated !

Yeeeeeeeeeaaaaaaaaaaaaaaaaaaaaah !!!!!!!!!!!!!!

I maaaaaaaaade it !

 "preArgs": "[#{@{Modes_QC}==1 ? 1 : @{Modes_QC}==2 ? 14 : @{Modes_QC}==3 ? 1 :0},#{@{Modes_QC}==1 ? 16 + $: @{Modes_QC}==2 ? 54 + $ : @{Modes_QC}==3 ? 70 + $:0}]",

Same thing to change target....

Yahoooooooooooooooooooooooooooooo !

Edit : crazy enough to add a separate "shift" button too... :crazy_face: