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

Profile XML Conditional Operators

Magi

New Member
Joined
Oct 12, 2012
Messages
1,242
Reaction score
7
What are the conditional operators available to us to fine tune profiles? All I can see is to check if something is true: == as well as AND

Code:
<If condition="ActorExistsAt(3795, 4263.047, 4200.328, -25.00001, 100) and ZetaDia.CurrentWorldId == 93099">
	<MoveTo questId="1" x="4250.376" y="4232.752" z="-24.56764" pathPrecision="10" name="Stonefort-01" />
</If>

Do we have options for OR as well as NOT EQUALS?

I tried not equals with != to no avail. I haven't seen anyone using anything but "==" and "and"

Appreciate any insight or link to API info.
 
You can also add 'not' to the condition.
PHP:
<If condition="(not Me.IsInTown)">
<!-- Do something -->
</If>
 
Logical Operators:

and- Called Logical AND operator. If both the operands are true then then condition becomes true. (a and b) is true.

or - Called Logical OR Operator. If any of the two operands are non zero then then condition becomes true. (a or b) is true.

not - Called Logical NOT Operator. Use to reverses the logical state of its operand. If a condition is true then Logical NOT operator will make false. not(a and b) is false.


Comparison operators

<strictly less than
<=less than or equal
>strictly greater than
>=greater than or equal
==equal
!=not equal
isobject identity
is notnegated object identity


XML: escape sequences

In text and attribute values, you need to escape ASCII characters like the angle brackets (). Most common encodings are:

" &quot;
< &lt;
> &gt;
& &amp;
 
Back
Top