mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-08 14:19:32 +00:00
462 lines
6.5 KiB
HTML
462 lines
6.5 KiB
HTML
<html>
|
|
<head>
|
|
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
<title>
|
|
More Conditions</title>
|
|
<meta content="DocBook XSL Stylesheets V1.60.1" name="generator">
|
|
<link rel="home" href="index.html" title="Antelope Users Guide">
|
|
<link rel="up" href="bk03ch05.html" title="Chapter 5. If Task">
|
|
<link rel="previous" href="bk03ch05.html" title="Chapter 5. If Task">
|
|
<link rel="next" href="bk03ch06.html" title="Chapter 6. SwitchTask">
|
|
</head>
|
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
|
<div class="section" lang="en">
|
|
<div class="titlepage">
|
|
<div>
|
|
<div>
|
|
<h2 class="title" style="clear: both">
|
|
<a name="conditionals">
|
|
</a>
|
|
More Conditions</h2>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
</div>
|
|
</div>
|
|
<p>
|
|
|
|
These conditions are suitable for use in the <bool> element. Unfortunately, they cannot be used in the <condition> task, although all conditions for the <condition> task can be used with the <bool> and the <bool> can be used anywhere that <condition> can be used.
|
|
</p>
|
|
<h4>
|
|
<a name="N10708">
|
|
</a>
|
|
IfPropertyTrue</h4>
|
|
<p>
|
|
|
|
Given a property name, tests whether the value for that property equals "true" (or "yes" or "on").
|
|
</p>
|
|
<p>
|
|
|
|
<div class="table">
|
|
<a name="N1070F">
|
|
</a>
|
|
<p class="title">
|
|
<b>
|
|
Table 5.2. IfPropertyTrue Attributes</b>
|
|
</p>
|
|
<table summary="IfPropertyTrue Attributes" border="1">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Attribute</th>
|
|
<th>
|
|
Description</th>
|
|
<th>
|
|
Required</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
property</td>
|
|
<td>
|
|
The name of a property to test the value of.</td>
|
|
<td>
|
|
Yes</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
</p>
|
|
<p>
|
|
|
|
<table border="0" bgcolor="#E0E0E0">
|
|
<tr>
|
|
<td>
|
|
<pre class="programlisting">
|
|
|
|
|
|
<ispropertytrue property="myprop"/>
|
|
<ispropertytrue property="${someprop}"/>
|
|
|
|
</pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</p>
|
|
<h4>
|
|
<a name="N1072C">
|
|
</a>
|
|
IfPropertyFalse</h4>
|
|
<p>
|
|
|
|
Given a property name, tests whether the value for that property equals "false" (or "no" or "off").
|
|
</p>
|
|
<p>
|
|
|
|
<div class="table">
|
|
<a name="N10733">
|
|
</a>
|
|
<p class="title">
|
|
<b>
|
|
Table 5.3. IfPropertyFalse Attributes</b>
|
|
</p>
|
|
<table summary="IfPropertyFalse Attributes" border="1">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Attribute</th>
|
|
<th>
|
|
Description</th>
|
|
<th>
|
|
Required</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
property</td>
|
|
<td>
|
|
The name of a property to test the value of.</td>
|
|
<td>
|
|
Yes</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
</p>
|
|
<p>
|
|
|
|
<table border="0" bgcolor="#E0E0E0">
|
|
<tr>
|
|
<td>
|
|
<pre class="programlisting">
|
|
|
|
|
|
<ispropertyfalse property="myprop"/>
|
|
<ispropertyfalse property="${someprop}"/>
|
|
|
|
</pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</p>
|
|
<h4>
|
|
<a name="N10750">
|
|
</a>
|
|
StartsWith</h4>
|
|
<p>
|
|
|
|
Given a property name, tests whether the value for that property starts with a specified string.
|
|
</p>
|
|
<p>
|
|
|
|
<div class="table">
|
|
<a name="N10757">
|
|
</a>
|
|
<p class="title">
|
|
<b>
|
|
Table 5.4. StartsWith Attributes</b>
|
|
</p>
|
|
<table summary="StartsWith Attributes" border="1">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Attribute</th>
|
|
<th>
|
|
Description</th>
|
|
<th>
|
|
Required</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
string</td>
|
|
<td>
|
|
The string to test.</td>
|
|
<td>
|
|
Yes</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
with</td>
|
|
<td>
|
|
Check if 'string' starts with this value.</td>
|
|
<td>
|
|
Yes</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
</p>
|
|
<p>
|
|
|
|
<table border="0" bgcolor="#E0E0E0">
|
|
<tr>
|
|
<td>
|
|
<pre class="programlisting">
|
|
|
|
|
|
<startswith string="abcdefg" with="abc"/>
|
|
<startswith string="${myprop}" with="foo"/>
|
|
|
|
</pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</p>
|
|
<h4>
|
|
<a name="N1077B">
|
|
</a>
|
|
EndsWith</h4>
|
|
<p>
|
|
|
|
Given a property name, tests whether the value for that ends with with a specified string.
|
|
</p>
|
|
<p>
|
|
|
|
<div class="table">
|
|
<a name="N10782">
|
|
</a>
|
|
<p class="title">
|
|
<b>
|
|
Table 5.5. EndsWith Attributes</b>
|
|
</p>
|
|
<table summary="EndsWith Attributes" border="1">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Attribute</th>
|
|
<th>
|
|
Description</th>
|
|
<th>
|
|
Required</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
string</td>
|
|
<td>
|
|
The string to test.</td>
|
|
<td>
|
|
Yes</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
with</td>
|
|
<td>
|
|
Check if 'string' ends with this value.</td>
|
|
<td>
|
|
Yes</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
</p>
|
|
<p>
|
|
|
|
<table border="0" bgcolor="#E0E0E0">
|
|
<tr>
|
|
<td>
|
|
<pre class="programlisting">
|
|
|
|
|
|
<endswith string="abcdefg" with="efg"/>
|
|
<endswith string="${myprop}" with="bar"/>
|
|
|
|
</pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</p>
|
|
<h4>
|
|
<a name="N107A6">
|
|
</a>
|
|
IsGreaterThan</h4>
|
|
<p>
|
|
|
|
Tests whether the first argument is greater than the second argument. Will
|
|
automatically treat the arguments as numbers if both arguments consists of only the characters 0 through 9 and optionally a decimal point. Otherwise, a String
|
|
comparison is used.
|
|
</p>
|
|
<p>
|
|
|
|
<div class="table">
|
|
<a name="N107AD">
|
|
</a>
|
|
<p class="title">
|
|
<b>
|
|
Table 5.6. IsGreaterThan Attributes</b>
|
|
</p>
|
|
<table summary="IsGreaterThan Attributes" border="1">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Attribute</th>
|
|
<th>
|
|
Description</th>
|
|
<th>
|
|
Required</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
arg1</td>
|
|
<td>
|
|
The first argument.</td>
|
|
<td>
|
|
Yes</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
arg2</td>
|
|
<td>
|
|
The second argument.</td>
|
|
<td>
|
|
Yes</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
</p>
|
|
<p>
|
|
|
|
<table border="0" bgcolor="#E0E0E0">
|
|
<tr>
|
|
<td>
|
|
<pre class="programlisting">
|
|
|
|
|
|
<!-- evaluates to true -->
|
|
<isgreaterthan arg1="6.02" arg2="4"/>
|
|
|
|
<!-- evaluates to false -->
|
|
<isgreaterthan arg1="bar" arg2="foo"/>
|
|
|
|
</pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</p>
|
|
<h4>
|
|
<a name="N107D1">
|
|
</a>
|
|
IsLessThan</h4>
|
|
<p>
|
|
|
|
Tests whether the first argument is less than the second argument. Will
|
|
automatically treat the arguments as numbers if both arguments consists of only the characters 0 through 9 and optionally a decimal point. Otherwise, a String
|
|
comparison is used.
|
|
</p>
|
|
<p>
|
|
|
|
<div class="table">
|
|
<a name="N107D8">
|
|
</a>
|
|
<p class="title">
|
|
<b>
|
|
Table 5.7. IsLessThan Attributes</b>
|
|
</p>
|
|
<table summary="IsLessThan Attributes" border="1">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Attribute</th>
|
|
<th>
|
|
Description</th>
|
|
<th>
|
|
Required</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
arg1</td>
|
|
<td>
|
|
The first argument.</td>
|
|
<td>
|
|
Yes</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
arg2</td>
|
|
<td>
|
|
The second argument.</td>
|
|
<td>
|
|
Yes</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
</p>
|
|
<p>
|
|
|
|
<table border="0" bgcolor="#E0E0E0">
|
|
<tr>
|
|
<td>
|
|
<pre class="programlisting">
|
|
|
|
|
|
<!-- evaluates to false -->
|
|
<islessthan arg1="6.02" arg2="4"/>
|
|
|
|
<!-- evaluates to true -->
|
|
<islessthan arg1="bar" arg2="foo"/>
|
|
|
|
</pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</p>
|
|
</div>
|
|
<hr>
|
|
<p align="center">Copyright © 2003 Ant-Contrib Project. All
|
|
rights Reserved.</p>
|
|
</body>
|
|
</html>
|