forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


@equal() error/bug?!??

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Wed Jun 26, 2002 12:52 pm    Post subject: @equal() error/bug?!?? Reply with quote

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 Smile

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
View user's profile Send private message Visit poster's website MSN Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Wed Jun 26, 2002 12:58 pm    Post subject: Reply with quote

( ) 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
View user's profile Send private message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Wed Jun 26, 2002 1:12 pm    Post subject: Reply with quote

that was quick Smile Smile Smile

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
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group