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

SC: write code in the conditions? #914

Closed
bchamagne opened this issue Feb 22, 2023 · 1 comment
Closed

SC: write code in the conditions? #914

bchamagne opened this issue Feb 22, 2023 · 1 comment
Labels
feature New feature request

Comments

@bchamagne
Copy link
Member

Is your feature request related to a problem?

We might want to write code in the conditions blocks for more flexibility.

Describe the solution you'd like

Here's an example (pseudocode):

condition inherit: [
  uco_transfers: (
  found = false

  for transfer: next.uco_transfers do 
    if transfer.to == "010101" do 
      found = true 
    end
  end

  found
  )
]

This code check that there is at least 1 transfer to "010101".

Additional context

No response

@bchamagne
Copy link
Member Author

done in #903

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
Status: Done 🍻
Development

No branches or pull requests

1 participant