| View previous topic :: View next topic |
| Author |
Message |
michaelmcstay Newbie
Joined: 16 Oct 2005 Posts: 6 Location: UT
|
Posted: Mon Oct 31, 2005 9:47 pm Post subject: stuck on IFs again :) |
|
|
Hi all i have been looking at some examples i need my script to
do something if the word test is found and if its not i need it to do nothing
i been trying but no luck any ideas on how to do this ?
this example will still fire the msgbox if the "test" is not there i would need it to just end
thank you
michael
| Code: | %%file =%A
if @equal(%%file, "test")
%R = @msgbox(Message,Title,$000)
else
end |
|
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Mon Oct 31, 2005 11:50 pm Post subject: |
|
|
Michael,
What version of VDS are you using? I don't have this problem with VDS 5. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Tue Nov 01, 2005 2:19 pm Post subject: Re: stuck on IFs again :) |
|
|
Just a stab in the dark here, but you've got an empty else statment there.
Have you tried:
| Code: | %%file =%A
if @equal(%%file, "test")
%R = @msgbox(Message,Title,$000)
end
|
_________________ cheers
Dave |
|
| Back to top |
|
 |
|