Added default values
This commit is contained in:
		
							parent
							
								
									03fe2af481
								
							
						
					
					
						commit
						28bd52fa09
					
				| @ -203,6 +203,13 @@ There are a number of values you can assign to your variables, as of Omega 1.0, | ||||
| 
 | ||||
| Values in Omega are strongly typed, meaning combining two different types cannot be combined, unless they are successfully cast. | ||||
| 
 | ||||
| Default values for these types are as follows: | ||||
| - `0` for `i16`, `i32`, `i64`, `f32`, and `f64`. | ||||
| - `""` for `string`. | ||||
| - `false` for `boolean`. | ||||
| - [`empty`](#empty) for `T?`. | ||||
| - `[]` (empty array) for `T[]` | ||||
| 
 | ||||
| ### Conditions | ||||
| For the sake of glossary, conditions can simply be `true` or `false`, but in all cases where "conditions" are said, [logical operators](#logical-operators) also apply. | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Teascade
						Teascade