When condition 'or' structure question

It’s possible to define a series of ‘and’ conditions for a task as follows:

when:

  • foo == true
  • bar == true

As far as I’m aware, the only way to define ‘or’ conditions is in-line, as such:

when: foo == true or bar == true

Is there any other way to define ‘or’ conditions, in a way that’s similar to the first example?

Thanks,
Guy

No. It is not. It can be simplified

   when:
     - foo
     - bar

   when: foo or bar

Cheers,

  -vlado

You can also do

  when: true in [foo, bar]

And

    when: [foo, bar] is all

    when: [foo, bar] is any

Cheers :slight_smile:

  -vlado