<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html
  SYSTEM "about:legacy-compat">
<html xmlns:mml = "http://www.w3.org/1998/Math/MathML" lang = "en"><head><meta charset = "UTF-8"/><meta name = "copyright" content = "(C) Copyright 2020"/><meta name = "DC.rights.owner" content = "(C) Copyright 2020"/><meta name = "DC.type" content = "concept"/><meta name = "abstract" content = "Logical variables are discussed within this section."/><meta name = "description" content = "Logical variables are discussed within this section."/><meta name = "DC.relation" scheme = "URI" content = "../TsoCmdMap/tso-r-cmd-logical.htm#tso-r-cmd-logical"/><meta name = "DC.format" content = "HTML5"/><meta name = "DC.identifier" content = "tso-c-usr-post-toolbox-logVar"/><meta name = "DC.language" content = "en"/><link rel = "stylesheet" type = "text/css" href = "../DSDocUI_XML34.css"/><title>Logical Variables (LOGICAL)</title>
<script type = "text/javascript" src = "../DSDocUI_Highlight34.js">
  	/* */
  	</script></head><body onLoad = "highlightSearchTerms();" id = "tso-c-usr-post-toolbox-logVar">
<a name = "hj-top"> </a><table class = "table1" id = "table11"><tr><td><table class = "DocHeader"><tr><td class = "DocHeader1" colspan = "2"><h1>Logical Variables (<span class = "ph">LOGICAL</span>)</h1></td></tr><tr><td class = "DocHeader4" colspan = "2"/></tr><tr><td class = "DocHeader3"><table class = "DocHeaderIntro" id = "table12"><tr><td class = "Intro1Only"><p class = "header"><p class = "abstract">
<span class = "shortdesc">Logical variables are discussed within this section.</span>

</p>
<ul><li><a href = "#tso-c-usr-post-toolbox-logVar__tso-c-usr-post-toolbox-numVar-example" id = "toc_rg" title = "">Examples</a></li></ul>
</p></td></tr></table></td><td class = "DocHeader2"><table class = "DocTopicsSeeAlso" id = "table13"><tr><td class = "TopicsTitle">See Also</td></tr></table><table class = "DocTopicsInOtherGuides" id = "table14"><tr><td height = "8px"/></tr><tr><td class = "TopicsTitleNormal">In Other Guides</td></tr><tr><td><a title = "Definition of logical variables." href = "../TsoCmdMap/tso-r-cmd-logical.htm#tso-r-cmd-logical">LOGICAL</a></td></tr></table></td></tr></table>




<div class = "body conbody">
<p>Allowed values for the logical variables are <code class = "ph codeph">TRUE,
FALSE</code> and <code class = "ph codeph">UNSET</code>. The value is determined by
the comparison of two numerical variables (<code class = "ph codeph">DEF_TYPE = BASE</code>)
or by combining several logical variables (<code class = "ph codeph">DEF_TYPE = BOOLEAN</code>).</p>
<p>The permitted operators for two numerical variables are: <code class = "ph codeph">GE</code>
(= greater or equal than), <code class = "ph codeph">LE, GT, LT</code> and<code class = "ph codeph"> EQ</code>.
The comparison of the two numerical variables, <code class = "ph codeph">Var1 &gt; Var2</code>,
sets the status <code class = "ph codeph">TRUE, FALSE</code> or <code class = "ph codeph">UNSET</code>
depending on whether <code class = "ph codeph">Var1 &gt; Var2, Var1 &lt; Var2</code>
or one of the variables is not defined. The status can also
be determined with an <code class = "ph codeph">AND</code> or <code class = "ph codeph">OR</code> condition
using 1 to 4 logical variables. In this way, simple as well as 
complex logical variables can be constructed.</p>

<div class = "section" id = "tso-c-usr-post-toolbox-logVar__tso-c-usr-post-toolbox-numVar-example"><h2 class = "title sectiontitle">Examples</h2>

<table class = "table" id = "tso-c-usr-post-toolbox-logVar__ah826632"><caption/><colgroup><col/><col/><col/><col/></colgroup><thead class = "thead">
<tr class = "row">
<th class = "entry" id = "tso-c-usr-post-toolbox-logVar__ah826632__entry__1" colspan = "2"/>
<th class = "entry" id = "tso-c-usr-post-toolbox-logVar__ah826632__entry__2" colspan = "2"><p>(Var1 <span class = "ph"> Δ </span> Var2)</p></th>
</tr>
</thead><tbody class = "tbody">
<tr class = "row">
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__1"><p>Var1</p></td>
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__1"><p>Var2</p></td>
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__2"><p><span class = "ph">Δ </span>= AND</p></td>
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__2"><p><span class = "ph">Δ </span>= OR</p></td>
</tr>
<tr class = "row">
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__1"><p>True</p></td>
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__1"><p>True</p></td>
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__2"><p>True</p></td>
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__2"><p>True</p></td>
</tr>
<tr class = "row">
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__1"><p>True</p></td>
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__1"><p>False</p></td>
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__2"><p>False</p></td>
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__2"><p>True</p></td>
</tr>
<tr class = "row">
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__1"><p>False</p></td>
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__1"><p>False</p></td>
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__2"><p>False</p></td>
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__2"><p>False</p></td>
</tr>
<tr class = "row">
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__1"><p>True</p></td>
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__1"><p>Unset</p></td>
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__2"><p>Unset</p></td>
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__2"><p>True</p></td>
</tr>
<tr class = "row">
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__1"><p>False</p></td>
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__1"><p>Unset</p></td>
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__2"><p>Unset</p></td>
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__2"><p>False</p></td>
</tr>
<tr class = "row">
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__1"><p>Unset</p></td>
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__1"><p>Unset</p></td>
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__2"><p>Unset</p></td>
<td class = "entry" headers = "tso-c-usr-post-toolbox-logVar__ah826632__entry__2"><p>Unset</p></td>
</tr>
</tbody></table>

<p>In the above table, the result of combination of two logical variables<code class = "ph codeph">
Var1</code> and <code class = "ph codeph">Var2 </code>using <code class = "ph codeph">AND</code> or
<code class = "ph codeph">OR</code> operation is listed for all possible values of <code class = "ph codeph">Var1</code>
and <code class = "ph codeph">Var2</code>.</p>
<p>The logical variables are used in <span class = "ph">SIMULIA Tosca Structure</span>,
for example, for the definition of the stop conditions. It is also
possible to control the dynamic model modification (in <code class = "ph codeph">OPT_PARAM</code>)
with logical variables. </p>
<p>Logical variables are defined with the <code class = "ph codeph">LOGICAL</code> command.</p>
<p>If one of the logical variables is <code class = "ph codeph">UNSET</code>, the second
variable in<code class = "ph codeph"> AND</code> operation is ignored, see the above
figure.</p>
</div>

</div>

<div class = "related-links"/>
</td></tr></table><script type = "text/javascript" src = "../DSDocUI_Bottom34.js">/* */</script></body>
</html>
