Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2002
    Location
    Finland
    Posts
    10

    Wink ELSE is missing - SF6

    It would be nice to have ELSE-"action" with the IF-"action".

    Timo

  2. #2
    Join Date
    Feb 2001
    Location
    Hungary Budapest
    Posts
    54

    Lightbulb Re: ELSE is missing - SF6

    Yes, Yes!!

  3. #3
    Join Date
    Oct 2001
    Location
    Norway
    Posts
    939

    Re: ELSE is missing - SF6

    "Missing or not missing"
    It should be nice to have "else"; we are waiting for the news in v6.0.0.3, but the missing else is no great restriction:

    If Condition 1
    Do something
    Goto label Next
    End If
    If !(Condition 1)
    Do something else
    End If
    Next (label)


    ------------------
    /jfn

  4. #4
    Join Date
    Mar 2002
    Location
    Germany
    Posts
    3

    Re: ELSE is missing - SF6

    If Condition 1
    Do something
    Goto label Next
    End If
    If !(Condition 1)
    Do something else
    End If
    Next (label)


    --> It works, but it's not good using GOTOs
    Its very unreadable !An ELSE statement is better.

  5. #5
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728

    Re: ELSE is missing - SF6

    You don't need the gotos.

    if(condition)
        A
    end if

    if(!condition)
        B
    end if

    If "condition" is true, "B" will never be performed.
    --[[ Indigo Rose Software Developer ]]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts