if/elseif/else structure menu

User Tag List

Results 1 to 1 of 1
  1. #1
    tttommeke's Avatar Banned
    Reputation
    1
    Join Date
    Jul 2007
    Posts
    613
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    if/elseif/else structure

    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 !
    Last edited by tttommeke; 03-19-2008 at 01:43 PM.

    if/elseif/else structure

Similar Threads

  1. If/Else if/Else structure
    By tttommeke in forum Programming
    Replies: 4
    Last Post: 05-17-2008, 05:00 AM
  2. If/Elsif/Else structure
    By tttommeke in forum Programming
    Replies: 0
    Last Post: 03-19-2008, 01:42 PM
  3. Any1 else having a instance swapping problem?
    By Fault in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 09-30-2006, 03:01 PM
  4. Model Changing Quest, Who Else Thinks We Need One?
    By Fault in forum World of Warcraft Model Editing
    Replies: 7
    Last Post: 09-19-2006, 06:34 PM
  5. Hate MySpace? Put this in someone elses comment
    By Matt in forum Community Chat
    Replies: 1
    Last Post: 04-23-2006, 03:47 PM
All times are GMT -5. The time now is 11:12 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search