dominicprice / endplay

A suite of tools for generation and analysis of bridge deals. Read the documentation at https://endplay.readthedocs.io
MIT License
21 stars 5 forks source link

Fix `Unknown function if` when running dealer scripts #49

Closed dominicprice closed 1 month ago

dominicprice commented 1 month ago

The ternary operator in dealer scripts is implemented as an if function internally, which had an implementation but was missing from _dispatch_function meaning that any use of the ternary operator raised an error when encountered in a script.

This adds a clause dispatching the if function correctly.