How to select one msg.payload out of 4 recieved

oh yes i see. Second one you added a topic. Makes it more readable i guess. Again thank you for the help! I have been strugling many hours to write a function wich would do this.