79687635

Date: 2025-07-02 15:00:02
Score: 1
Natty:
Report link

Google workflow does not directly accept ternary operators. To implement this you can add a step that uses a switch block.
see more here:
https://cloud.google.com/workflows/docs/reference/syntax/conditions#yaml

- check_some_variable_exists:
        switch:
          - condition: ${"some_variable" in input}
            assign:
              - some_variable: ${input.some_variable}
          - condition: ${true}
            assign:
              - some_variable: "default_value"
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Winnie