You are not logged in.

Dear visitor, welcome to Palo Community Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Alexander

Intermediate

  • "Alexander" started this thread

Posts: 8

Date of registration: Aug 16th 2007

Location: Russia

  • Send private message

1

Tuesday, September 18th 2007, 7:30am

Conditional rules

Hello,

I have some difficulties with conditional rules where condition is value of the attribute. For example I have to calculate the rule for the elements which have attribute value equals to 1 (or maybe it is possible to use string value?). Is it possible?

Thank you in advance.

  • "h_decker" is male

Posts: 763

Date of registration: Oct 26th 2005

Location: Cologne, Germany

  • Send private message

2

Tuesday, September 18th 2007, 10:04am

RE: Conditional rules

Hi,
should be something like this:

['target'] =if(palo.data("dbname","#_YourAttributeCube","Attributename",!'dimension')==1,1234,stet())


!'dimension' means everyelement of dimension, if want to have it hardcoded for one element use 'elementname' without leading ! instead.

Hope this helps.

Greeting from Cologne
Holger

Alexander

Intermediate

  • "Alexander" started this thread

Posts: 8

Date of registration: Aug 16th 2007

Location: Russia

  • Send private message

3

Tuesday, September 18th 2007, 10:13am

RE: Conditional rules

Thank you for your answer. It works!

  • "h_decker" is male

Posts: 763

Date of registration: Oct 26th 2005

Location: Cologne, Germany

  • Send private message

4

Tuesday, September 18th 2007, 10:20am

RE: Conditional rules

nice to hear.

Rate this thread