May work for you, without the need of custom scripting: HypeConditionLinker: Perform actions based on AND/OR conditions without JavaScript code
May work for you, without the need of custom scripting: HypeConditionLinker: Perform actions based on AND/OR conditions without JavaScript code