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

# Visual Logic Conditional Steps and Iteration

### #1 power4ull Posted 18 March 2015 - 01:06 PM

power4ull

New Member

• Member
• 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

### #2 azarl Posted 19 March 2015 - 03:03 AM

azarl

• 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 Posted 05 June 2015 - 05:32 PM

MartianProdigy

New Member

• Member
• 2 posts

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

• 0

azarl

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

Asign

GET dTemp

Input

IF isCelsius

COndition

etc

• 0

### #5 MartianProdigy Posted 07 June 2015 - 02:31 PM

MartianProdigy

New Member

• Member
• 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 Posted 08 June 2015 - 01:53 AM

azarl

• 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