| View previous topic :: View next topic |
| Author |
Message |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Wed Jun 26, 2002 12:52 pm Post subject: @equal() error/bug?!?? |
|
|
I have recently come across a problem with the @equal () function and was wondering if anybody else found the same problem and if it is a normal error - if you know what i mean
This is the problem. The following line of code does not process the equal properly.
| Code: | %1 = time (1)
if @equal(%1,time (1))
rem do something
else
rem do something else
end
|
I find that the @equal() function does not like brackets.
Serge _________________
|
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Wed Jun 26, 2002 12:58 pm Post subject: |
|
|
( ) symbols are special characters in VDS. They typically are used with functions such as @fmul(). Put " " marks around them to fix the problem:
| Code: |
%1 = "time (1)"
if @equal(%1,"time (1)")
rem do something
else
rem do something else
end
|
|
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Wed Jun 26, 2002 1:12 pm Post subject: |
|
|
that was quick
I knew about @ in that it had to be placed within "" as in an email address but i did not realise that this was the case for brackets too.
Thanks for letting me know,
Serge _________________
|
|
| Back to top |
|
 |
|