 |
OxnyxWS Newbie
Joined: 23 Oct 2006 Posts: 8
|
Posted: Thu Nov 27, 2008 12:04 am
Removing Case from a String |
Hi all,
I'm sure I'm just missing some command in the help file anyway I am running a buyer bot I want people using the bot to tell the bot 20 Blanks but I don't what the bot to care if they say 20 blanks or 20 bLANks. Basicly I just want to strip the case from the @Item. Below is a code snippet as what I have at the this time.
Code: |
#TRIGGER ($Cust:%1) tells you '(($Amount:%n)) ((($Product:%w)))
{#VAR Customer $Cust
tell @Customer Ok So you would like $Amount of $Product?
#VAR NumItem $Amount
#VAR Item $Product
#VAR Sell 0
#IF ($Product = Blank)
{#VAR Sell %eval(@NumItem*@Blank)}}
|
[/code] |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Thu Nov 27, 2008 2:22 am |
You can use the %lower() function to convert something to lowercase. See %lower %upper and %proper functions.
|
|
|
 |
|
|