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 consist of a dollar sign, the command name, and the text you want to manipulate enclosed in parentheses.
|collapse||Removes spaces and converts the text to lowercase||
|tolower||Converts the text to lowercase||
|toupper||Converts the text to uppercase||
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, in the Company Name text box.|
|product||Your product name.||General Information, in the Product Name text box.|
|version||The version you're updating your product to.||Update Information, in the Version text box.|
|versionto||(same as version)||Update Information, in the Version text box.|
|versionfrom||The version you're updating your product from.||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 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:
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.