|
BlackSmith Apprentice
Joined: 08 Dec 2002 Posts: 152
|
Posted: Fri Feb 25, 2005 6:29 pm
valuation in If fuction is not working |
this:
partner wrote: |
^(*) screams in pain.$ |
value wrote: |
#IF (%1!="@LastScreemer") {
party report Screems like french schoolgirl
#VA (LastScreemer) {%1} {%1} {GeneralCaster}
} {#VA (LastScreemer) {%1} {%1} {GeneralCaster}}
#SUB {%1 screams in pain. (about zero resitance)} |
Should result that it reports only at the after first time resiving the screeming input but it does the opposite.
Ideas? |
|
|
|
Odoth Wanderer
Joined: 13 Nov 2004 Posts: 54 Location: Visalia, CA
|
Posted: Fri Feb 25, 2005 7:09 pm |
Try taking the double quotes off of the "@LastScreemer".
Also, since you are declaring the variable for either case of the if statement you can remove it from the statement and place it after the if is completed:
Code: |
#IF ("%1"!=@LastScreemer) {party report Screems like french schoolgirl}
#VA (LastScreemer) {%1} {%1} {GeneralCaster}
#SUB {%1 screams in pain. (about zero resitance)}
|
|
|
_________________ *ribbit* |
|
|
|
BlackSmith Apprentice
Joined: 08 Dec 2002 Posts: 152
|
Posted: Fri Feb 25, 2005 10:02 pm |
Odoth wrote: |
Also, since you are declaring the variable for either case of the if statement you can remove it from the statement and place it after the if is completed: |
True true. Thanks for help
|
|
|
|
|
|