Loading ...
Sorry, an error occurred while loading the content.

Re: [Clip] Clip Script Help/Mathematics

Expand Messages
  • RS
    Hi Julie, ... The ^$[] is an old type of construct that cannot handle neither wizards nor variables: WRONG: ^!Set %Fahrenheit%=^?[Fahrenheit] ^!Info
    Message 1 of 4 , Jul 16, 2002
    • 0 Attachment
      Hi Julie,

      At 07/16/02 11:08 AM -0400 you wrote:
      >In the Mathematics topics of Clip help there is an example of a clip to
      >convert °F => °C that looks like this:
      >
      >^$[(^?[Fahrenheit]-32)*(5/9)]°C=^?[Fahrenheit]°F
      >
      >When I plug a number into it, say, 32, I get the following:
      >
      >[error in expression]°C=32°F
      >
      >What's wrong with the expression?



      The ^$[] is an old type of construct that cannot handle neither wizards nor variables:

      WRONG:
      ^!Set %Fahrenheit%=^?[Fahrenheit]
      ^!Info ^$[^%Fahrenheit%]°C

      WRONG:
      ^!Info ^$[^?[Fahrenheit]]°C

      CORRECT:
      ^!Info ^$[(50-32)*(5/9)]°C


      Use the ^$Calc()$ function to pass a variable or include a wizard:

      CORRECT:
      ^!Set %Fahrenheit%=^?[Fahrenheit]
      ^!Info ^$Calc((^%Fahrenheit%-32)*(5/9))$°C=^%Fahrenheit%°F

      ALSO CORRECT, USING A WIZARD:
      ^!Info ^$Calc((^?[Fahrenheit]-32)*(5/9))$°C=^?[Fahrenheit]°F




      Regards,

      RS

      --------------------
      ClipWriter http://ptools.home.att.net/ClipWriter/cw.htm
    Your message has been successfully submitted and would be delivered to recipients shortly.