QuestionQ125Verified/Data ManipulationCopy linkReport a problemAsk AstroTutorSave questionWhich one of the following expressions is equivalent to the If activity shown? Amessage = if(number mod 2 = 0, “Even number”, “Odd number”)Bmessage = if(number mod 2 = 0, Odd number, Even number)Cmessage = if(number mod 2 = 0 then “Odd number” else “Even number”)Dmessage = if(number mod 2 = 0, {“Odd number”} else {Even number”})Show AnswerAnswerExplanationAn If activity executes its Then branch when its Boolean condition is true and its Else branch when it is false. Since number mod 2 = 0 identifies an even number, the conditional expression must assign "Even number" when true and "Odd number" when false.Learn moreUiPath If activity documentationShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion