While this does change the two switches in the editor, it doesn't actually change the states of both outputs. What I mean is if the two switch nodes were connected to LEDs, setting S1 to on will turn on lamp 1 on, but if you now set S2 to on, it will turn on lamp 2 but it will not shut lamp 1 off.
To do that you need a little more.
In this example the switches send a 0 or 1 and the function node inverts the value (with the magic of math ) and the LED use 1 and 0 to turn them off and on.
Ha! I just noticed the wires make it look like a pair of scissors!
Here is the flow:
[{"id":"a543f1c479f08644","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"78ce232ad2afa991","type":"junction","z":"a543f1c479f08644","x":280,"y":240,"wires":[["9cec55aca83a96bb","776ac564a4f786db"]]},{"id":"dcb5bc3b2216a85c","type":"junction","z":"a543f1c479f08644","x":280,"y":120,"wires":[["61503e744073b853","02649808e3c05314"]]},{"id":"61503e744073b853","type":"ui_switch","z":"a543f1c479f08644","name":"","label":"Switch 01","tooltip":"","group":"a095025ac31861a2","order":1,"width":"5","height":"1","passthru":false,"decouple":"true","topic":"topic","topicType":"msg","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","animate":false,"className":"","x":160,"y":120,"wires":[["dcb5bc3b2216a85c","f1653c42af2e68b1"]]},{"id":"9cec55aca83a96bb","type":"ui_switch","z":"a543f1c479f08644","name":"","label":"Switch 02","tooltip":"","group":"a095025ac31861a2","order":3,"width":"5","height":"1","passthru":false,"decouple":"true","topic":"topic","topicType":"msg","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","animate":false,"className":"","x":160,"y":240,"wires":[["78ce232ad2afa991","cba2210e71531b22"]]},{"id":"02649808e3c05314","type":"function","z":"a543f1c479f08644","name":"Invert payload 0->1 or 1->0","func":"msg.payload = 1 - msg.payload \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":660,"y":60,"wires":[["9cec55aca83a96bb","cba2210e71531b22"]]},{"id":"776ac564a4f786db","type":"function","z":"a543f1c479f08644","name":"Invert payload 0->1 or 1->0","func":"msg.payload = 1 - msg.payload \n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":660,"y":300,"wires":[["61503e744073b853","f1653c42af2e68b1"]]},{"id":"f1653c42af2e68b1","type":"ui_led","z":"a543f1c479f08644","order":2,"group":"a095025ac31861a2","width":"1","height":"1","label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"0","valueType":"num"},{"color":"#008000","value":"1","valueType":"num"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"","x":450,"y":120,"wires":[]},{"id":"cba2210e71531b22","type":"ui_led","z":"a543f1c479f08644","order":4,"group":"a095025ac31861a2","width":"1","height":"1","label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"0","valueType":"num"},{"color":"#008000","value":"1","valueType":"num"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"","x":450,"y":240,"wires":[]},{"id":"6784f4c2aea8e926","type":"comment","z":"a543f1c479f08644","name":"This looks like a pair of sizzors!","info":"","x":270,"y":60,"wires":[]},{"id":"a095025ac31861a2","type":"ui_group","name":"Test","tab":"76c928cd.92de08","order":5,"disp":true,"width":"6","collapse":false,"className":""},{"id":"76c928cd.92de08","type":"ui_tab","name":"Test","icon":"dashboard","order":1,"disabled":false,"hidden":false}]