How can I specify this task in if ? is this even possible?

And to easily get the process to start up you will need to unconditionally read and store the value as part of your setup() code. Then the loop does not need any special one-time processing.
Paul