Skip to Content
author's profile photo Former Member
Former Member

IF logic Statement in PAS

Hi,

I have two issues while calculating the Virtual variables in PAS.

1.I want to calculate a virtual variable with 'IF' logic.Result of the virtual variable is greater than 10 then value is 1 else 0.How to calculate this in PAS.

2.For some of the virtual variables which has got Zero divided by Zero and the value is not displaying in SSM Scorecard screen.how to manage this issue.

Regards

Bala

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 13, 2011 at 03:37 PM

    Hi,

    1)

    example of logic:

    var2

    if var1 gt 10 =1

    otherwise =0

    2)

    what value do you want to display?

    if I understand your problem if you have two variables with zero and you want a result, you have to do a formula like:

    var3

    If var1 ne 0 and var2 ne 0 then var3=var1/var2

    otherwise = <value>

    Miguel

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.