What are the expression operators and how do comparisons coerce types?
IntermediateConceptContexts, Expressions, Env & Outputs
Answer
Operators: ( ), [ ], ., !, <, <=, >, >=, ==, !=, &&, ||. String comparison is case-insensitive ('Main' == 'main' is true). Mismatched types are coerced to numbers: null to 0, booleans to 1 or 0, strings parsed as numbers (empty string is 0, non-numeric is NaN, and NaN never equals anything). Objects and arrays are equal only if they are the same instance. So 'true' == true is false, and '' == 0 is true.
More on Contexts, Expressions, Env & Outputs
List the available contexts and what each holds.BeginnerWhich contexts can you use in which keys? Give two examples that trip people up.AdvancedHow do you write a ternary in GitHub Actions expressions?IntermediateWhat do `contains`, `startsWith`, `endsWith`, `format` and `join` do?BeginnerWhat are object filters (`.*`) and how are they useful?IntermediateWhat do `toJSON` and `fromJSON` do, and give a real use of each?Intermediate