Throw (toString (t.buyOrder.orderType))

Hello.

The throw (toString (t.buyOrder.orderType)) function is not accepted by the compiler.
In the documentation where I can not find a solution to the question of how to distinguish the created order for the type BUY / SELL on the DEX exchange in the RIDE language. Please tell me how the values ​​of BUY / SELL are determined.

You can try an example here: Order type in smart assets