Automic Continuous Delivery Automation

 View Only
  • 1.  PreCondition Usage

    Posted Mar 19, 2018 11:10 PM
    Hello,

    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 Mar 21, 2018 06:23 AM
    Antoine_Sauteron can you please help on this.


  • 3.  PreCondition Usage

    Posted Mar 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,
    Antoine



  • 4.  PreCondition Usage

    Posted Mar 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 Mar 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,
    Antoine


  • 6.  PreCondition Usage

    Posted Mar 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
    OR
    IF Condtion2

    and not

    IF Conditon1
    AND
    IF Condition2

    Best Regards,
    Vivek Sharma


  • 7.  PreCondition Usage

    Posted Mar 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,
    Antoine


  • 8.  PreCondition Usage
    Best Answer

    Posted Mar 21, 2018 04:26 PM
    Hi

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

    zhihmzyk9v27.jpg

    cheers, Wolfgang


  • 9.  PreCondition Usage

    Posted Mar 22, 2018 06:14 AM
    Thank you it solved my problem.


  • 10.  PreCondition Usage

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