Halt Compile; If Statement; Insert Line Into Text File - Symantec WISE LINUX PACKAGE EDITOR 8.0 - REFERENCE V1.0 Reference

Table of Contents

Advertisement

Halt Compile

If Statement

Insert Line Into Text File

Linux Package Editor Reference
This action immediately stops the compile (build) process. It must be placed between
Compiler Variable If and Compiler Variable End statements or the script will never build.
Use this to ensure that conditions are met before compiling.
To complete the dialog box
Enter Message Text
Enter a message to display to the user if the build is stopped.
This action marks the beginning of a conditional block of script, an If block. If the
condition specified in the If Statement is true, the lines inside the If block are executed.
The If block can also contain an Else or several ElseIf actions.
To create an If block
1.
Add an If Statement and complete the dialog box:
Variable
Select a variable from the first drop-down list, and a comparison method from
the second drop-down list.
The Value
Enter the value to be used in the comparison. This is case-sensitive, unless you
selected a comparison method that ignores case. If you enter variable names,
include $ before the variable. You cannot use compiler variables.
2.
Below the If Statement, add one or more actions to perform if the variable has the
specified value.
3.
(Optional.) Add an Else or several ElseIf actions. Follow the Else action with one or
more actions to perform if the compiler variable does not have the specified value.
4.
Add an End If action.
See also:
Else Statement
on page 55
ElseIf Statement
on page 55
End If
on page 56
This action edits a text file on the Linux computer. (Example: You can add a user to the
password file.) You can insert a new line at a particular line number, or you can search
for text and insert a new line after each occurrence of the text.
When the action is run, the results are placed in the $RETURNCODE variable:
0
The action ran successfully.
non-zero
The action was unsuccessful.
Script Actions
59

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the WISE LINUX PACKAGE EDITOR 8.0 - REFERENCE V1.0 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Wise linux package editor 8.0

Table of Contents