It is currently Wed Feb 08, 2012 6:14 pm



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 3 posts ] 
Author Message
 Post subject: Q language
PostPosted: Mon Apr 27, 2009 8:14 am 

Joined: Wed Dec 10, 2008 7:32 am
Posts: 31
Hi all,
I would like to put some “advanced” conditions in my template but I have several questions concerning Q language.

1. How can I check that a package name is different from, e.g., “A” or “B”?
Until now I am using $name<>”A” but I don't know how to add the or condition using Q languaje.

2. How can I put more than one condition ? e.g., I would like that the iteration will run only on those packages which name is different from “A” and that contain nested packages.

$name<A>0

if I put both in the same condition it gives me an error…
using “;” or similar sentence termination doesn't work…how is this done in Q language???

Thanks everybody


Offline
 Profile  
 
 Post subject:
PostPosted: Mon Apr 27, 2009 8:52 am 

Joined: Wed Dec 10, 2008 7:32 am
Posts: 31
ops, I solved :D

I realized that the whole advanced condition must return a boolean true/false, so I specified the condition in the following way...

$name<>"A" and $name<>"B" and size[nestedPackages]>0

don't know if it is the best solution but it works...

thanks anyway!!!


Offline
 Profile  
 
 Post subject:
PostPosted: Wed Apr 29, 2009 10:58 pm 

Joined: Thu Aug 30, 2007 4:31 pm
Posts: 152
Location: Germany
cool thanks a lot ....


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 3 posts ] 


Who is online

Users browsing this forum: No registered users and 0 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:

cron

suspicion-preferred