Stata 15 help for _cassert


[P] _cassert -- Verify two strings are equal


_cassert, string(string1) to(string2) [nostop]


_cassert verifies that string1==string2 is true. If it is true, the command produces no output. If it is not true, _cassert informs you of the "assertion failure", displays the strings, and issues a return code of 9; see [U] 8 Error messages and return codes.


string(string1) specifies the string in question.

to(string2) specifies the expected string.

nostop prevents termination with error code 9 but still displays the error message.

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index