Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

First two loop script examples were in reverse order. #47

Merged
merged 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 9 additions and 9 deletions.
  1. +9 −9 cfml100mins.markdown
View
18 cfml100mins.markdown
@@ -487,9 +487,12 @@ There are two basic kinds of numbers in CFML: integers (whole numbers) and real
```cfm
<cfscript>
-for (loop = 0 ; loop < 5 ; loop++)
- WriteOutput("#loop# Hello, world!<br>");
-WriteOutput("I am here<br>");
+loop = 0;
+while (loop < 5) {
+ WriteOutput("#loop# Good Morning! ");
+ WriteOutput("...is it lunch time yet?<br>");
+ loop++;
+}
</cfscript>
```
@@ -515,12 +518,9 @@ Try this example with multiple instructions:
```cfm
<cfscript>
-loop = 0;
-while (loop < 5) {
- WriteOutput("#loop# Good Morning! ");
- WriteOutput("...is it lunch time yet?<br>");
- loop++;
-}
+for (loop = 0 ; loop < 5 ; loop++)
+ WriteOutput("#loop# Hello, world!<br>");
+WriteOutput("I am here<br>");
</cfscript>
```
Something went wrong with that request. Please try again.