Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Visual Logic Conditional Steps and Iteration


  • Please log in to reply

#1
power4ull

power4ull

    New Member

  • Member
  • Pip
  • 1 posts

I'm trying to figure out

 

Converting from Fahrenheit to Celsius or the reverse over temperatures for several days

Just totally stuck


  • 0

Advertisements


#2
azarl

azarl

    GeekU Admin

  • Community Leader
  • 25,310 posts

// scan list/file
FOR EACH DAY IN LIST
 
   // reset values
   dCelsius = 0
   dFar = 0
   dTemp = 0
 
   GET dTemp
 
   IF isCelsius
      dFar = dTemp*1.8 + 32
      PRINT dFar
 
   // Fahrenheit
   ELSE
      dCelsius = (dTemp - 32)/1.8
      PRINT dCelcius
   ENDIF
 
ENDFOR


  • 0

#3
MartianProdigy

MartianProdigy

    New Member

  • Member
  • Pip
  • 2 posts

how do you use that for Visual Logic? not quite understanding


  • 0

#4
azarl

azarl

    GeekU Admin

  • Community Leader
  • 25,310 posts
// reset values
   dCelsius = 0
   dFar = 0
   dTemp = 0

 

Asign

 

GET dTemp

 

 

Input

 

IF isCelsius

 

 

COndition

 

etc


  • 0

#5
MartianProdigy

MartianProdigy

    New Member

  • Member
  • Pip
  • 2 posts

ok, all this did was confuse me, I am new to this and don't understand what any of that means, nor how to put that into visual logic as "// reset values" is not a visual logic term.


  • 0

#6
azarl

azarl

    GeekU Admin

  • Community Leader
  • 25,310 posts

// are remarks, look at the statements underneath


  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP