Loop with nextion

Hey everyone. I am a newbie to arduino and been learning as i go along.
Im Having trouble with setting a touch button in loop to turn on a relay.

Im looking for an example of a code using a button on nextion for the arduino

Can someone help please?

Thank You

Please describe your components and problems better.

What exactly is that "nextion"? How is it related to Arduino? Do you have an Arduino library for it, and example code?

Hi thanks for the reply.
Im using a nextion 4.3 display and an arduino mega. Im looking for a code example to use the button on the display to turn on a relay in loop()

i have searched but cant find a code example

Without Arduino libraries and sample code you're lost :frowning:

Fortunately a search for "arduino nextion display" reveals a bunch of hits in many languages.