One of the basics in most languages is the if-elseif-else structure. If you can't handle this I advise you to stop immedialty with programming/scripting !
The if-elseif-else structure is -normally- very easy !
Example :
PHP pastebin - collaborative debugging tool
When we dissect this script in normal language it will look like :
When their are less then 5 apples the page will say : 'Their are less then 5 apples' but if the total of apples is equal to 5 then the page will tell us 'Their are exactly 5 apples' and when neither of these 2 is correct their is only 1 possibility and that is that their are more then 5 apples !