Added default values

This commit is contained in:
Teascade 2017-08-28 00:14:22 +00:00
parent 03fe2af481
commit 28bd52fa09
1 changed files with 7 additions and 0 deletions

View File

@ -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.