May 09, 2024, 05:33:24 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


ElseIf

Started by J B Wood (Zumwalt), December 26, 2006, 08:24:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

J B Wood (Zumwalt)

Forgive my lack of looking, but I can't seem to find the ElseIf clause.
Do I have to do that long hand for the time being?

Ionic Wind Support Team

Because there isn't one ;)
Ionic Wind Support Team

J B Wood (Zumwalt)

Ok, final question on that, what about string continuation using the _ at the end of a line

STRING test="this is the first" _
"part of a very long" _
"string"


Ionic Wind Support Team

STRING test="this is the first" +_
"part of a very long" +_
"string"

Each 'part' of a string is limited to 1024 characters.
Ionic Wind Support Team

J B Wood (Zumwalt)

Thanks, forgot about the limitation.
What about subs?

Sub mytest (def myval as int, _
                  def myval1 as int, _
                  def myval2 as int), int


Ionic Wind Support Team

subs and their parameters have to be on one line.  The preparser can't handle the _ symbol.   

Declare's can use the _ though.

Paul.
Ionic Wind Support Team

J B Wood (Zumwalt)

Yikes.. ok, thanks..
What about conditional statements?


If m_Level(X, Y, Z).sFloorType = SquareType.sFloor _
           And sType <> SquareType.Door _
           And sType <> SquareType.StairsDn _
           And sType <> SquareType.StairsUp _
        Then
            return
        End If

Ionic Wind Support Team

You tell me.  I have done that before and it has worked, but if you are having problems it is better to state so then to try and make me guess  ::) 

Then THEN is really not necessay and I would probably code it as:

If (m_Level(X, Y, Z).sFloorType = SquareType.sFloor) _
           And (sType <> SquareType.Door) _
           And (sType <> SquareType.StairsDn) _
           And (sType <> SquareType.StairsUp)
                 return
End If

Ionic Wind Support Team

J B Wood (Zumwalt)

Thanks again for your patience with me Paul.
I'll work on this some more tomorrow, over 2500 lines as it is, just had those small sticking points.