Automic Continuous Delivery Automation

Expand all | Collapse all

PreCondition Usage

Jump to Best Answer
  • 1.  PreCondition Usage

    Posted 03-19-2018 11:10 PM

    I want to add multiple precondition to a action. Is it possible to pass multiple values in Value2 section such as

    If Value1 = Value2,Value3,Value4

    or do I need to create multiple If condition in this.

  • 2.  PreCondition Usage

    Posted 03-21-2018 06:23 AM
    Antoine_Sauteron can you please help on this.

  • 3.  PreCondition Usage

    Posted 03-21-2018 06:33 AM
    Hi VivekSharma609055

    I'm not sure I understand your need.

    Maybe :SWITCH ... :CASE ... :OTHER ... :ENDSWITCH is what you are looking for ?

    Best regards,

  • 4.  PreCondition Usage

    Posted 03-21-2018 06:38 AM
    Hi Antoine_Sauteron

    In normal scripting language we use IF $Value1 = Value2 & $Value2= Value2

    But in the ARA under precondition we have to use multiple IF to achieve it. Is there any way to achieve similar thing in single IF and not create multiple IF.

  • 5.  PreCondition Usage

    Posted 03-21-2018 07:14 AM
    Hi Vivek,

    Thanks for the clarification.
    When using :IF, you can use an "OR" keyword, but not an "AND". An additional IF has to be created.

    Best regards,

  • 6.  PreCondition Usage

    Posted 03-21-2018 07:31 AM
    Hi Antoine,

    You mean that multiple IF is used in Preconditon it will be OR and not "AND"

    IF Condtion1
    IF Condtion2

    and not

    IF Conditon1
    IF Condition2

    Best Regards,
    Vivek Sharma

  • 7.  PreCondition Usage

    Posted 03-21-2018 08:39 AM
    HI Vivek,

    What I mean is you can use a

    :IF &VALUE1# OR &VALUE2#
    condition, but not

    :IF &VALUE1# AND &VALUE2#.
    Should you want to have an AND condition, then you will need to use a nested IF.

    Best regards,

  • 8.  PreCondition Usage
    Best Answer

    Posted 03-21-2018 04:26 PM

    with a little Scripting Trick you can build an AND clause yourself with only one IF:


    cheers, Wolfgang

  • 9.  PreCondition Usage

    Posted 03-22-2018 06:14 AM
    Thank you it solved my problem.

  • 10.  PreCondition Usage

    Posted 03-22-2018 07:37 AM
    You 're welcome :-)