Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce IF operator #3090

Merged
merged 40 commits into from
Jan 14, 2025
Merged

Introduce IF operator #3090

merged 40 commits into from
Jan 14, 2025

Conversation

aglinxinyuan
Copy link
Collaborator

@aglinxinyuan aglinxinyuan commented Nov 20, 2024

The IF operator evaluates a condition against a specified state variable and routes the input data to either the True or False branch accordingly. The condition port accepts a state variable, and users can define the name of the state variable to be evaluated by the IF operator.
Note: The Date to State operator will be introduced in a separate PR.

image

@aglinxinyuan aglinxinyuan self-assigned this Nov 20, 2024
Copy link
Collaborator

@Yicong-Huang Yicong-Huang left a comment

Choose a reason for hiding this comment

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

Left some comments. In general:

  1. don't use statement. there is no statement in workflows/operators. note for the terminology. we are borrowing the "if statement" concept from PL, but don't use the name in our context.
  2. note for the naming conversions.
  3. pleases add more documentations.

Copy link
Collaborator

@Yicong-Huang Yicong-Huang left a comment

Choose a reason for hiding this comment

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

LGTM. Please update to the latest APIs on physical Op.

@aglinxinyuan
Copy link
Collaborator Author

Tested with latest master.
image

@aglinxinyuan aglinxinyuan merged commit 9b9c200 into master Jan 14, 2025
8 checks passed
@aglinxinyuan aglinxinyuan deleted the xinyuan-if-statement branch January 14, 2025 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants