Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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

  • Administrator
  • 25,203 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

  • Administrator
  • 25,203 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

  • Administrator
  • 25,203 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