Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 154633

An if-else statement is a programming conditional statement that runs a different set of statements depending on whether an expression is true or false.

6 votes
1 answer
9k views

Using if/else structure in Google Earth Engine

I wrote some simple code to test the if/else structure in GEE: var flag = ee.Algorithms.IsEqual(1,5); print(flag) if (flag) { print("this is true"); } else { print("this is false"); } the output …
Zihao Zheng's user avatar