Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
EDT:Writing basic logic
Revision as of 15:49, 10 February 2012 by Mheitz.us.ibm.com (Talk | contribs) (New page: == Basic EGL statements == Assign x to y. <source lang="java"> y = x; </source> If-then statement. <source lang="java"> if ( x > 4 ) x = y; end </source> If-then-else statement. <s...)
Basic EGL statements
Assign x to y.
y = x;
If-then statement.
if ( x > 4 ) x = y; end
If-then-else statement.
if ( x > 4 ) x = y; else x = 10; end
While loop.
while ( x > 0 ) counter += 1; x -= 1; end
Return from a function.
return;
Return a value from a function.
return ( x );