![]() Strings are often words, but can be any combination of characters (including numbers, letters, or special characters) enclosed by quotation marks. Strings - A string is a sequence of characters. The basic types in Presentation are strings, integers (ints), doubles, booleans (bools), and rgb colors (rgb_colors). ![]() This section will only use basic type variables in the examples. The distinction between basic types and other types should become clearer once other types and their parameters are introduced. Presentation has several types of information that can be stored that are considered basic types. In this example, you have created a string variable called word and assigned it the string "blue". You may also optionally assign an initial value, or initialize, that variable: If you get an error in your scenario, it oftentimes is because of a missing semi-colon. This allows you to use more than one line for a statement. Note: In Presentation, the end of a statement is always marked by a semi-colon. In this example, you have created a string variable called word. Here is an example of how to declare a variable: When you create a variable, or declare it, you must tell Presentation what type of information it will store, whether it be text, an integer, a decimal or something else. Please see A First Scenario and Running a Scenario if you do not know how to run a scenario.Ĭreating a variable in Presentation is a way of reserving memory to store a particular type of information. This chapter assumes you are familiar with the Presentation GUI and can use the Editor tab and run a scenario.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |