View Single Post
  #1  
Unread 01-12-2006, 03:39 PM
Erahain Erahain is offline
A Crazed Gnoll
 
Join Date: Jan 2006
Server: Antonia Bayle
Posts: 23
Default Operators and conditionals

My second post about this; but this time in a new
thread =P

-

I don't know if this has already been discovered, but I'm
posting it in case of...

While doing some research, I stumbled across the ##
operator. It is used to concatenate strings. However, there
are a few syntax rules that must be followed.

Look at the example below:

Code:
<Button LocalText="Happy" A="Very" B="Happy"
OnPress="LocalText=A ## ' ' ## B"/>
Keep in mind; always space between the property/value
and the ##, unless you put it in a block (...).

This does NOT work:

Code:
<Button LocalText="Happy" A="Very" B="Happy"
OnPress="LocalText=A##' '##B"/>
... but this does...

Code:
<Button LocalText="Happy" A="Very" B="Happy"
OnPress="LocalText=(A)##(' ')##(B)"/>
Reply With Quote