First time using buttons

I can give it 3 outputs no problem, but Im still stuck on the function node that needs to check the status, let alone send different commands to different outputs.
I am asking anyone in my network, but havent found anyone that can help me with the code.
Its the last button I need to get working, the rest work.