Hello
everyone,
I have a question I am not sure how to hide the elements in the blue box when all or some of the swichtes in the red boxes are in "on" position
I tierd to do these
% under each "switch value changed"
value = app.Switch_Gray_Sp.Value; if strcmp(app.Switch_Gray_Sp.Value, 'On') app.gz =0; else strcmp(app.Switch_Gray_Sp.Value, 'Off') app.gz=1; end % I repeated this for all three colors
% then, under pick a file drop dwon menu for all speakers
sum = app.rz+app.bz+app.grz+app.gz; if (sum==4) app.PickAFileDropDown_All_Sp.Visible = 'off' ; app.OverallVolumeSlider.Visible = 'off' ; else (sum<4) app.PickAFileDropDown_All_Sp.Visible = 'on' ; app.OverallVolumeSlider.Visible = 'on' ; end % also, I tried to do this at the "startupFun(app)"
if strcmp(app.Switch_Red_Sp.Value, 'On') || strcmp(app.Switch_Black_Sp.Value, 'On') || strcmp(app.Switch_Gray_Sp.Value, 'On') || strcmp(app.Switch_Green_Sp.Value, 'On') app.PickAFileDropDown_All_Sp.Visible = 'off' ; app.OverallVolumeSlider.Visible = 'off' ; else strcmp(app.Switch_Red_Sp.Value, 'Off') && strcmp(app.Switch_Black_Sp.Value, 'Off') && strcmp(app.Switch_Gray_Sp.Value, 'Off') && strcmp(app.Switch_Green_Sp.Value, 'Off') app.PickAFileDropDown_All_Sp.Visible = 'on' ; app.OverallVolumeSlider.Visible = 'on' ; end
I believe that my executions are in the wong place
Can you help with that please.
Best Answer