if (){
}
else if(){
}
else if(){
}
else
{
}
On 11/29/12, Ahmed Abdeen Hamed <
ahmed....@gmail.com> wrote:
> Hello,
>
> What is the syntax for if else if?
>
> I am trying to do the following: The first two functions are called in the
> third. The third has a else but I am unable to make it else if. Can anyone
> take kindly a look at this and let me know?
>
> Sincerely,
>
> -Ahmed
>
> (deffunction minutes_diff
> (?arrival_minutes ?departure_minutes)
> (- ?departure_minutes ?arrival_minutes))
>
> (deffunction hours_diff
> (?arrival_hour ?departure_hour)
>
> (* (- ?departure_hour ?arrival_hour ) 60))
>
> (deffunction minutes_to_next_flight
> (?arrival_hour ?arrival_minutes ?departure_hour ?departure_minutes)
>
> (if (> (hours_diff ?arrival_hour ?departure_hour) 0)
> then
> (-
> (hours_diff ?arrival_hour ?departure_hour)
> (minutes_diff ?arrival_minutes ?departure_minutes)
> )
>
> else ;(if (<= (hours_diff ?arrival_hour ?departure_hour) 0) IS
> NEEDED!!!
> (-
> (minutes_diff ?arrival_minutes ?departure_minutes)
> (hours_diff ?arrival_hour ?departure_hour)
>
> )))
>
> --
> You received this message because you are subscribed to the Google Groups
> "CLIPSESG" group.
> To post to this group, send email to
CLIP...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/CLIPSESG?hl=en
>
> --> IF YOU NO LONGER WANT TO RECEIVE EMAIL <--
> Visit this group at
http://groups.google.com/group/CLIPSESG?hl=en
> Click on "Edit my membership" link.
> Select the "No Email" radio button.
> Click the "Save these settings" button.
>
> --> IF YOU WANT TO UNSUBSCRIBE <--
> Visit this group at
http://groups.google.com/group/CLIPSESG?hl=en
> Sign in
> Click on "Edit my membership" link.
> Click the "Unsubscribe" button.
> Note: This appears to be the most reliable way to unsubscribe
>
> Alternately, send email to
CLIPSESG-u...@googlegroups.com. You will
> receive an email which you must respond to as well to unsubscribe. Clicking
> the link mentioned in the unsubscribe reply does not appear to work
> reliably.