Nextion and relays

I am very new to xod and arduino, so please forgive me, Could someone help. I need a simple program in xod that thurs a 5v relay on and off on a bread board. I have the nextion all set with a dual state switch so it can toggle the relay. But I can’t get it to communicate with the relay. i am using Wayland library. Thank you so much