& behaves as "or" in conditional fields

Environment

Discourse Version: 3bbd8b1258

Plugin Commit: 428cccd

Other Plugins
discourse-data-explorer
discourse-events
discourse-oauth2-basic
discourse-plugin-linkedin-auth
discourse-zoom

Steps to Reproduce

When I use a conditional group Actions:

If I use an ‘if’, and chain a second condition with a ‘&’

I find that the action occurs if either condition applies.

Example

https://healthforum.nz/admin/wizards/wizard/broad_group

Although this Wizard is now corrupt sorry!

It behaves as though it is an ‘or’ rather than a ‘&’. Do I misunderstand the intent?

Perhaps we need and ‘&’ as well as a ‘or’ option.

Logs

@Nathan I’ve made a fix for the exception that was causing the Broad Group wizard to be un-administerable.

https://healthforum.nz/admin/wizards/wizard/broad_group

I’m not 100% sure on which aspect of conditionality you’re referring to. Can you give me an example?

** edit I’m updating this doc to clarify the chaning of conditions and the chaining of pairs:

@Nathan I’ve found the issue behind this report and addressed it (and updated healthforum). The logic will behave as you’ve assumed here. Further detail on condition and pair chaining here:

Sweet - despite my example which it turns out I had messed with, you worked out the issue and fixed it!

Working well now - can be closed.

1 Like