bright, fresh software
Downloads  |  Buy

Commands and Variables

Variables are used within wyBuild in order to reuse defined text (version number, product name, etc.), while commands are used to manipulate text.

Commands

Commands consist of a dollar sign, the command name, and the text you want to manipulate enclosed in parentheses.

Command Name Description Example Result
collapse Removes spaces and converts the text to lowercase
$collapse(Example Text)
exampletext
tolower Converts the text to lowercase
$tolower(Example Text)
example text
toupper Converts the text to uppercase
$toupper(Example Text)
EXAMPLE TEXT

Variables

wyBuild Variables

wyBuild variables are selections of text that are defined in one part of wyBuild and can be used throughout the rest of your project. These variables consist of the variable name surrounded by two percent signs (e.g. %company%).

Variable Name Description Where it's found in wyBuild
company Your company name. General Information General Information, in the Company Name text box.
product Your product name. General Information General Information, in the Product Name text box.
version The version you're updating your product to. Update Information Update Information, in the Version text box.
versionto (same as version) Update Information Update Information, in the Version text box.
versionfrom The version you're updating your product from. Update Information Update Information, in the Version text box.
file The filename of the update and server files. File > Properties, in the Update & Server files tab.

Translation Variables

Translation variables are selections of text that are replaced with the corresponding value within a translation of wyUpdate. See the Translating wyUpdate for more information.

Variable Name Replaced with...
product The name of the product being updated.
old_version The current version of the software.
new_version The updated version of the software.

Example usage of Commands and Variables

Below is an example using commands and variables in unison to form the final filename to your update file:

Using commands and variables

Now, when you create a new update you only have to change the version number in Update Information and the version will automatically be filled in wherever you use the %version% variable.