I need help with a checkbox


#1

so I made a button that moves a object and I have a checkbox underneath it that
you can choose the duplicate or not also

but I can’t get it right (check below)

Sorry guys I am new to this so I don’t even know if I am close




button -label "3500mm" -command "Dup1() ; move -r -os -wd 0 -350 0 ; ";
               
checkBox
                    -value 1 
                    -label "Duplicate on"
                    
     proc Dup1() {
     if (myChkBx.value 1) Duplicate;
     }