How to populate the value of Variable B based on the value of Variable A in a Harness.
Explanation:
Variable A:
The value of Variable A uses <+input> to allow user input.
allowedValues restricts the input to predefined options like Option1, Option2, and Option3.
Variable B:
The value of Variable B is determined dynamically based on the value of Variable A using Harness's expression language.
Logic:
If Variable A is Option1, then Variable B is set to ValueForOption1.
If Variable A is Option2, then Variable B is set to ValueForOption2.
If Variable A is Option3, then Variable B is set to ValueForOption3.
The else block provides a fallback value if none of the conditions are met.