What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

There's an "IF" Tag to XML, but How do i Access "Else"

valen1

New Member
Joined
Apr 10, 2012
Messages
115
Reaction score
0
the "Else" tag would change alot, anyone got any idea how to get the Else work in the XML? :s

<If condition>
</If>
<Else>
</Else>

..etc.
 
There's no "Else" tag for Demonbuddy yet.
 
the "Else" tag would change alot, anyone got any idea how to get the Else work in the XML? :s

<If condition>
</If>
<Else>
</Else>

..etc.

Since there's no Else tag in DB you can do it like this:

Code:
<If condition="Me.IsInTown==False">
<!-- What do you wanna do.
</If>
<!-- Now comes the <Else> -->
<If condition="!Me.IsInTown==False"> <!-- OR Me.IsInTown==True -->
<!-- Easy else! -->
</If>
 
Will be adding ElseIf and Else eventually so you can use it like this:
PHP:
<If condition="...">
  ...
  <ElseIf condition="...">
  ...
  </ElseIf>
  <Else>
  ...
  </Else>
</If>
 
Back
Top