Conditional statements for variables

Issue #17 closed
Denis Kuzmin repo owner created an issue

In continuation #13 to support conditional statements. Sample:

$($(Platform)=="x86"? $(Pathx32) : $(Pathx64))
$(var=$($(Platform)=="x86"? $(Pathx32) : $(Pathx64)))

New

See Issue #22 Unification of the format of our scripts

#[(cond){ body1 }else{ body2 }]
#[(cond){
   body
}]

Comments (6)

  1. Denis Kuzmin reporter

    Implemented with a6e4986

    Format:

    #[(cond){ body1 }]
    
    #[(cond){ body1 }else{ body2 }]
    

    Sample:

    #[(#[vsSBE events.Pre.item(1).Enabled]){
        #[Build projects.find("name").IsBuildable = false]
    }else{
        #[File write("D:\tmp\flag"): "allow"]
    }]
    

    Available operators:

    * ===, !==, ~=, ==, !=, >=, <=, >, <
    
  2. Log in to comment