14
14
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="assert_checkfalse" xml:lang="en">
16
<refname>assert_checkfalse</refname>
17
<refpurpose>Check that condition is false.</refpurpose>
20
<title>Calling Sequence</title>
22
flag = assert_checkfalse ( condition )
23
flag = assert_checkfalse ( condition )
24
[flag,errmsg] = assert_checkfalse ( condition )
29
<title>Parameters</title>
32
<term>condition:</term>
34
<para> a matrix of booleans</para>
40
<para> a 1-by-1 matrix of boolean, %t if condition is false, %f if not</para>
46
<para> a 1-by-1 matrix of strings, the error message. If flag==%t, then errormsg=="". If flag==%f, then errmsg contains the error message.</para>
52
<title>Description</title>
54
Performs silently if all entries in <literal>condition</literal> are false.
57
Generates an error if any entry in <literal>condition</literal>
59
Generates an error if <literal>condition</literal> is not a boolean.
62
If any entry in condition is true,
65
<para>if the errmsg output variable is not used, an error is generated,</para>
68
<para>if the errmsg output variable is used, no error is generated.</para>
76
<title>Examples</title>
77
<programlisting role="example"><![CDATA[
16
<refname>assert_checkfalse</refname>
17
<refpurpose>Check that condition is false.</refpurpose>
20
<title>Calling Sequence</title>
22
flag = assert_checkfalse ( condition )
23
flag = assert_checkfalse ( condition )
24
[flag,errmsg] = assert_checkfalse ( condition )
29
<title>Parameters</title>
32
<term>condition:</term>
34
<para> a matrix of booleans</para>
40
<para> a 1-by-1 matrix of boolean, %t if condition is false, %f if not</para>
46
<para> a 1-by-1 matrix of strings, the error message. If flag==%t, then errormsg=="". If flag==%f, then errmsg contains the error message.</para>
52
<title>Description</title>
54
Performs silently if all entries in <literal>condition</literal> are false.
57
Generates an error if any entry in <literal>condition</literal>
59
Generates an error if <literal>condition</literal> is not a boolean.
62
If any entry in condition is true,
65
<para>if the errmsg output variable is not used, an error is generated,</para>
68
<para>if the errmsg output variable is used, no error is generated.</para>
76
<title>Examples</title>
77
<programlisting role="example"><![CDATA[
78
78
// Tests which pass
79
79
assert_checkfalse ( %f );
80
80
flag = assert_checkfalse ( %f )