Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 9:57 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: If advanced condition problem
PostPosted: April 19th, 2010, 5:54 pm 
Offline

Joined: January 12th, 2005, 11:43 am
Posts: 8
Location: Spain
I Want To do an action provided that the condition that a variable finds between two numbers comes true
The action will come true if the total variable is major than 12 and minor or equal to 15. I
Use the advanced condition

if ((total > 12)&&(SCORE_TOTAL<=15))
}

But the action does not happen
Any suggestion

Pardon for my English

Un saludo
Pedro

_________________
Un saludo
Pedro Hernández


Top
 Profile  
 
 Post subject: Re: If advanced condition problem
PostPosted: April 19th, 2010, 6:05 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Works fine :-)

Code:
total = 13
SCORE_TOTAL = 14

if ((total > 12)&&(SCORE_TOTAL<=15))

{
Debug.trace("fishcakes")
}



Try adding a debug, before the IF, to check the values in entering the expression:

Code:
Debug.trace(total+'\n')
Debug.trace(SCORE_TOTAL+'\n')


Regards,

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 43 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group