How to loop correctly?

I'm looking to display some information on an LCD and make a pin HIGH all the while a temp sensor input is below a certain figure, then as soon as it hits the figure i'm aiming for it will break the loop and change the display/drop the pin LOW.

what are the basic steps to do this, i.e. in plain english, ignoring which devices and libraries i'm using.

help very appreciated

Well, based on your english description, a "while" loop seems to be the obvious answer, but notice that "make a pin high" is not something you need to KEEP doing; once you set it high it will stay that way..
A common way of writing this would look like:

    digitalWrite(mypin, HIGH);
    LCD.print("Scanning temp");
    oldtemp = get_temp();
    while (oldtemp < targettemp) {
      delay(1000);
      newtemp = get_temp();
      if (newtemp != oldtemp) {
        LCD.print("Temp now ");
        LCD.print(newtemp);
      }
      oldtemp = newtemp;
    } // end of while loop
    LCD.print("Target temp !")
    digitalWrite(mypin, LOW);

There are a bunch of other ways to do essentially the same thing. The most important alternative would probably be to use the loop() of the Arduino core instead of having your own loop. But that would make the program more obscure; it's a good thing to have your code match your description...

thankyou
i'm just going to have a play with this

this appears to do the job admirably

thankyou!