Wikia

FiM++ Community Wiki

Changes: And

Edit

Back to page

(Created page.)
 
m (Example: derp)
Line 15: Line 15:
 
{{code|continuation|...}}}}
 
{{code|continuation|...}}}}
   
This executes the next part of code if the variable {{code|variable|Applejack}} is equal to {{code|literal|99}} and the variable {{code|variable|Spike}} is equal to {{code|literal|12}}.
+
This loops the next part of code if the variable {{code|variable|Applejack}} is equal to {{code|literal|99}} and the variable {{code|variable|Spike}} is equal to {{code|literal|12}}.
   
 
This is equivalent to the following '''Java''' code:
 
This is equivalent to the following '''Java''' code:

Revision as of 17:34, November 15, 2012

The and operator is a boolean operator which returns <literal:true> only if all arguments are true, else returns <literal:false>.

Its token is named AND.

FDS

Icon Info
See Also: Infix notation

<value:boolean><whitespace>and<whitespace><value:number>

Example

I did this as long as Applejack is 99 and Spike is 12: ...

This loops the next part of code if the variable Applejack is equal to 99 and the variable Spike is equal to 12.

This is equivalent to the following Java code:

while(Applejack==99&Spike==12) { ...

See Also

Icon Info
This article is a stub. You can help FiM++ Wiki by expanding it.

Around Wikia's network

Random Wiki