Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: beginner scripting question re: if elsif else

by Dlamini (Novice)
on Oct 11, 2012 at 21:17 UTC ( #998555=note: print w/replies, xml ) Need Help??


in reply to Re^2: beginner scripting question re: if elsif else
in thread beginner scripting question re: if elsif else

Yes, the first part of your code gathers information from the user, then the second part actually does something with it. The way you have it, it will ask all the questions, and get all the answers from the user BEFORE getting to the if/else section. Once it is in the if/else section, it will do as you suspect -- i.e. if it is snowing, then that satisfies the if condition and therefore the else conditions are skipped.

Replies are listed 'Best First'.
Re^4: beginner scripting question re: if elsif else
by jhumphreys (Novice) on Oct 11, 2012 at 21:28 UTC

    Dlamini-

    Thanks! That's just what I needed to know.

    j.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://998555]
help
Chatterbox?
[GotToBTru]: ah yes that infamous poison di-hydrogen oxide
[Corion]: :-D
[Corion]: Di-hydrogen monoxide is even worse!
choroba needs some CH3CH2OH

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2016-12-06 12:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (103 votes). Check out past polls.