⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 assert.hlp

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 HLP
字号:
{smcl}
{* 29mar2005}{...}
{cmd:help assert}
{hline}

{title:Title}

{p2colset 5 19 21 2}{...}
{p2col :{hi:[D] assert} {hline 2}}Verify truth of claim{p_end}
{p2colreset}{...}


{title:Syntax}

{p 8 16 2}
{opt as:sert} {it:{help exp}} {ifin} [{cmd:,} {opt r:c0} {opt n:ull}]

{phang}
{cmd:by} may be used with {cmd:assert}; see {helpb by}.


{title:Description}

{pstd}
{cmd:assert} verifies that {it:exp} is true.  If it is true, the command
produces no output.  If it is not true, {cmd:assert} informs you that the
"assertion is false" and issues a return code of 9; see 
{bf:[U] 8 Error messages and return codes}.


{title:Options}

{pstd}
{opt rc0} forces a return code of 0, even if the assertion is false.

{pstd}
{opt null} forces a return code of 8 on null assertions.


{title:Examples}

{phang}{cmd:. assert salary>=6000 & salary<=125000}

{phang}{cmd:. assert sex=="Male" | sex=="Female"}

{phang}{cmd:. assert _merge==3}


{title:Also see}

{psee}
Manual:  {bf:[D] assert}

{psee}
Online:  {helpb capture}, {helpb confirm}
{p_end}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -