Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/devdocs/Writing Smart Contracts/Select.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ A selector is a function that takes in a control and two branches, and returns t

In Fhenix, we utilize this by calling the `select` function. It's a function that takes in a condition and two inputs, and returns the input that corresponds to the state of the condition. You can think of this like a ternary boolean conditional (`condition ? "yes" : "no"`), but for encrypted data.

Let's take a look at an example of `select` usage from a Blind Auction Smart Contract: TBD(ADD LINK):
Let's take a look at an example of `select` usage from a Blind Auction Smart Contract: [Blind Auction Example](https://github.com/FhenixProtocol/blind-auction-example)

```Javascript
ebool isHigher = existingBid.lt(value);
Expand Down