Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 327 Bytes

parse-bool.md

File metadata and controls

18 lines (12 loc) · 327 Bytes

parseBool

Signature

function parseBool(string calldata stringifiedValue) external pure returns (bool parsedValue);

Description

Parses the value of string into bool

Examples

string memory boolAsString = "false";
bool stringToBool = vm.parseBool(boolAsString); // false