-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexpression.dart
48 lines (42 loc) · 964 Bytes
/
expression.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Expression -- Operand & Operators
// *******Arithmetic Operators********
// + addition
// - subtration
// / division
// ~/ divide, returning an integer result
// % get the remainder of an integer division(modulo)
// ++ Increment
// -- Decrement
//
// ***** Equality and Relational
// > Greater than
// < Less than
// >= Greater than or equal to
// <= Less than or equal to
// == Equality
// != Not equal
//
main() {
var nam = 'Samuel';
print(nam);
int number1 = 25;
int number2 = 300;
bool condit = true;
if (number2 == 1 || number1 != 25) {
print('true decision');
} else if (condit != true) {
print('Not true');
} else {}
String name = 'Jide';
if (name is! String)
print('Data Type is String');
else
print('Type is not String');
}
// **** Type Test *******
// is True if the object has the specified type
// is! False if the object has the specified type
// **** Logical Operators ****
// && And
// || OR
// ! Not