Skip to content

Add Trigger class for conditional script execution#4030

Open
abdelaziz-mahdy wants to merge 5 commits intokgrgreer:developmentfrom
abdelaziz-mahdy:trigger-reflow
Open

Add Trigger class for conditional script execution#4030
abdelaziz-mahdy wants to merge 5 commits intokgrgreer:developmentfrom
abdelaziz-mahdy:trigger-reflow

Conversation

@abdelaziz-mahdy
Copy link
Copy Markdown
Collaborator

@abdelaziz-mahdy abdelaziz-mahdy commented Jun 16, 2025

Introduce a Trigger class that executes scripts based on specified conditions.


foam.CLASS({
package: 'foam.core.reflow',
name: 'Trigger',
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this different from the If you added in the other PR?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont really know, they are same actually the only difference the else block, and i do think they can be merged in the if one like if a user didnt input anything in else it will be ignored @kgrgreer, will that work/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants