How to keep something on until?

How do I keep a pin on until a certain temperature is reached

if (f>70)
digitalWrite(pin10,ON)

//how do I do this
Keep On until f=68

No how to keep pin, on until something is true

SEBA11:
No how to keep pin, on until something is true

Turn it on with digitalWrite(pin, HIGH);

Then regularly check the something using something like value = digitalRead(somethingPin);

When the something is true, turn it off using something like

if (value == true) {
   digitalWrite(pin, LOW);
}

...R

Just to be clear, when you set a pin high you don't have to do anything special to "keep" it high. It stays that way until you do something else to change it.

Steve

Delta_G I wish you were able to comment on my stepper issue I like the way you push people to look for the answers with just enough help to make it interesting.
My 1st experience on this forum was to come across rude idiots, I`m so please that not all responders are like that.

Tezzatron:
Delta_G I wish you were able to comment on my stepper issue I like the way you push people to look for the answers with just enough help to make it interesting.
My 1st experience on this forum was to come across rude idiots, I`m so please that not all responders are like that.

How is this helpful to @SEBA11 who started this Thread. Don't hijack other people's Threads.

And how are we supposed to know where to find the Thread with your stepper issue?

...R