Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 334 Bytes

enumval.sh.md

File metadata and controls

14 lines (12 loc) · 334 Bytes

enumval

enumval -- Casts a variable as an enum value.

Casts variable into enum type. If it fails, returns 1.

Usage

// 1-a. Function from.
bool func::enumval(string* output, string input)
// 1-b. Inplace function form.
bool func::enumval(string* variable)
// 2. Command form.
bool sub::enumval(string input) > output