<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.craftoftesting.com/index.php?action=history&amp;feed=atom&amp;title=Language_Syntax_-_Side_by_Side_Examples</id>
	<title>Language Syntax - Side by Side Examples - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.craftoftesting.com/index.php?action=history&amp;feed=atom&amp;title=Language_Syntax_-_Side_by_Side_Examples"/>
	<link rel="alternate" type="text/html" href="https://wiki.craftoftesting.com/index.php?title=Language_Syntax_-_Side_by_Side_Examples&amp;action=history"/>
	<updated>2026-10-14T14:52:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.craftoftesting.com/index.php?title=Language_Syntax_-_Side_by_Side_Examples&amp;diff=76&amp;oldid=prev</id>
		<title>Gregpaskal: Created page with &quot;{{: Header_Nav}} {| class=&quot;wikitable&quot; |+ ! colspan=&quot;3&quot; |Functionality (edit) ! colspan=&quot;6&quot; |Language |- !Family !Specific !Details !AppleScript !C++ !JavaScript !Ruby !Shell !Visual Basic |- |&lt;code&gt;Documentation&lt;/code&gt; |&lt;code&gt;Comment&lt;/code&gt; | |&lt;code&gt;-- This is a comment&lt;/code&gt; |&lt;code&gt;// This is a comment&lt;/code&gt; |&lt;code&gt;// This is a comment&lt;/code&gt; |&lt;code&gt;# This is a comment&lt;/code&gt; |&lt;code&gt;# This is a comment&lt;/code&gt;  |&lt;code&gt;&#039; This...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.craftoftesting.com/index.php?title=Language_Syntax_-_Side_by_Side_Examples&amp;diff=76&amp;oldid=prev"/>
		<updated>2025-04-05T03:37:29Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{: Header_Nav}} {| class=&amp;quot;wikitable&amp;quot; |+ ! colspan=&amp;quot;3&amp;quot; |Functionality (&lt;a href=&quot;/index.php?title=Language_Syntax_-_Side_by_Side_Examples&quot; title=&quot;Language Syntax - Side by Side Examples&quot;&gt;edit&lt;/a&gt;) ! colspan=&amp;quot;6&amp;quot; |Language |- !Family !Specific !Details !AppleScript !C++ !JavaScript !Ruby !Shell !Visual Basic |- |&amp;lt;code&amp;gt;Documentation&amp;lt;/code&amp;gt; |&amp;lt;code&amp;gt;Comment&amp;lt;/code&amp;gt; | |&amp;lt;code&amp;gt;-- This is a comment&amp;lt;/code&amp;gt; |&amp;lt;code&amp;gt;// This is a comment&amp;lt;/code&amp;gt; |&amp;lt;code&amp;gt;// This is a comment&amp;lt;/code&amp;gt; |&amp;lt;code&amp;gt;# This is a comment&amp;lt;/code&amp;gt; |&amp;lt;code&amp;gt;# This is a comment&amp;lt;/code&amp;gt;  |&amp;lt;code&amp;gt;&amp;#039; This...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{: Header_Nav}}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
! colspan=&amp;quot;3&amp;quot; |Functionality&lt;br /&gt;
([[Language_Syntax_-_Side_by_Side_Examples|edit]])&lt;br /&gt;
! colspan=&amp;quot;6&amp;quot; |Language&lt;br /&gt;
|-&lt;br /&gt;
!Family&lt;br /&gt;
!Specific&lt;br /&gt;
!Details&lt;br /&gt;
!AppleScript&lt;br /&gt;
!C++&lt;br /&gt;
!JavaScript&lt;br /&gt;
!Ruby&lt;br /&gt;
!Shell&lt;br /&gt;
!Visual Basic&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Documentation&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Comment&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;-- This is a comment&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;// This is a comment&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;// This is a comment&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;# This is a comment&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;# This is a comment&amp;lt;/code&amp;gt; &lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;#039; This is a comment&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Collection&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Array&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;struct myInfo {&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;int myNum;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;string myName;&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;};&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Collection&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Structure (aka struct)&amp;lt;/code&amp;gt;&lt;br /&gt;
|A way to group several related variables into one place.&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;if a &amp;gt; b&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Comparison&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Greater Than&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;if a &amp;gt; b&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;if a &amp;gt; b&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;If a &amp;gt; b Then&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Comparison&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Less Than&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;if a &amp;lt; b&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;if a &amp;lt; b&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;If a &amp;lt; b Then&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Comparison&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Equal To&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;if a == b&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Comparison&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Not Equal To&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;if a != b&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;if a != b&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;If a &amp;lt;&amp;gt; b Then&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Computation&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Addition&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;a = b + c&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;a = b + c&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Computation&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Division&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;a = b / c&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;a = b / c&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Computation&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Multiplication&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;a = b * c&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;a = b * c&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Computation&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Subtraction&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;a = b - c&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;a = b - c&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Conditional&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Case&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;&lt;br /&gt;
switch(expression {case x: // code&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
break;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
case y: // code&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
break;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
default:// code&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;case fruit  when &amp;#039;Apple&amp;#039;    result = &amp;#039;1 a day&amp;#039;  when &amp;#039;Pear&amp;#039;    result = &amp;#039;1 a week&amp;#039;  else    result = &amp;#039;unknown&amp;#039; end&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;Select Case(Fruit)  Case &amp;quot;Apple&amp;quot;    Result = &amp;quot;1 a day&amp;quot;  Case &amp;quot;Pear&amp;quot;    Result = &amp;quot;1 a week&amp;quot;  Case Else    Result = &amp;quot;Unknown&amp;quot; End Select&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Conditional&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;If - And - Then&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;If a = 1 and b = 2 Then&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Conditional&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;If - Or - Then&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;If a = 1 of b = 1 Then&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Conditional&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;If - Then - Else&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;if (time &amp;lt; 18) {&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;  cout &amp;lt;&amp;lt; &amp;quot;Good day.&amp;quot;;&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;} else {&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;  cout &amp;lt;&amp;lt; &amp;quot;Good evening.&amp;quot;;&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;}&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;if result == &amp;#039;pass&amp;#039;  puts &amp;#039;Pass&amp;#039; elsif result == &amp;#039;fail&amp;#039; #Note how elsif is spelled  puts &amp;#039;Fail&amp;#039; else  puts &amp;#039;Other&amp;#039; end&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;If a = b Then  print &amp;quot;a equals b&amp;quot; ElseIf a = c Then print &amp;quot;a equals c&amp;quot; Else  print &amp;quot;a does not equal b&amp;quot; End If&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Conditional&lt;br /&gt;
|Ternary&lt;br /&gt;
|Short-hand if else statement.&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;result = (time &amp;lt; 18) ? &amp;quot;Good day.&amp;quot; : &amp;quot;Good evening.&amp;quot;;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|var_is_greater_than_three = (var &amp;gt; 3 ? true : false)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Date&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Addition&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;EstHours = DateAdd(&amp;quot;d&amp;quot;,Days,Today)&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Date&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Difference&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;EstHours = DateDiff(&amp;quot;h&amp;quot;,FirstDate, SecondDate)&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Dialog&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;display dialog &amp;quot;Hello World&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;code&amp;gt;var app = Application.currentApplication();&amp;lt;br&amp;gt;&lt;br /&gt;
app.includeStandardAdditions = true;&amp;lt;br&amp;gt;&lt;br /&gt;
app.displayAlert(&amp;quot;This is a message&amp;quot;);&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;IO&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Input&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;cin &amp;gt;&amp;gt; x; // Get user input&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;IO&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Output&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;cout &amp;lt;&amp;lt; &amp;quot;Hello World!&amp;quot;;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;puts &amp;quot;Hello World&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;echo &amp;quot;Hello World&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;IO&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Serial Monitor or Terminal&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;Serial.begin(115200);&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;Serial.println(&amp;quot;Hello\nWorld&amp;quot;);&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;puts &amp;quot;Hello World&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Load URL&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;open location &amp;quot;&amp;lt;nowiki&amp;gt;https://gregpaskal.com/&amp;lt;/nowiki&amp;gt;&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Logical&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;And&amp;lt;/code&amp;gt;&lt;br /&gt;
|Returns true if both are true&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;if a = 1 &amp;amp;&amp;amp; b = 2&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Logical&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Or&amp;lt;/code&amp;gt;&lt;br /&gt;
|Returns true if one or the other are true&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;if a = 1 || b = 2&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Logical&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Not&amp;lt;/code&amp;gt;&lt;br /&gt;
|Returns true if results are false&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;if a != 1&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Loop&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Do&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;do {&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt; cout &amp;lt;&amp;lt; i;&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt; i++;&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;}&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;while (i &amp;lt; 5);&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;i = 0 Do  Print &amp;quot;Hello&amp;quot;  i =  i + 1  If i = &amp;quot;&amp;quot; Then    Exit Do  End If Loop until i &amp;gt; 5&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Loop&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;For&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;for (int i = 0; i &amp;lt; 5; i++) {&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;  cout &amp;lt;&amp;lt; i;&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;}&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;for i in 1..10  puts i end&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;For i = 1 to 10  print i Next&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Loop&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;While&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;while (i &amp;lt; 5) {&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;  cout &amp;lt;&amp;lt; i;&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt; i++;&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;}&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Speak&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;String&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Concatanation&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Joining multiple strings together&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;set theDialogText to &amp;quot;The current date and time is &amp;quot; &amp;amp; (current date) &amp;amp; &amp;quot;.&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;fullName = firstName + lastName;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;filespec = filepath + filename&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;Result = &amp;quot;Age = &amp;quot; &amp;amp; MyAge&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;String&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Interpolation&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;(Not possible in AppleScript)&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;Result = &amp;quot;Hello #{first_name}&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;String&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Length&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Get the length of a string&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;theLen = txt.length();&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;String&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;New line&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Start a new line&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;\n&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Type&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Bool&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;bool myBoolean = true;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Type&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Double&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;double myLargeNum = 556.9923234;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Type&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Character&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Store a single character&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;char myLetter = &amp;#039;D&amp;#039;;&amp;lt;/code&amp;gt; &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Type&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Float&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;float myFloatNum = 5.99;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Type&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Integer&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;int myNum = 15;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;a = Int(12.34)&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Type&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;String&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;string myText = &amp;quot;Hello&amp;quot;;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Time&lt;br /&gt;
|Delay&lt;br /&gt;
|Waiting for a designated delay&lt;br /&gt;
|&lt;br /&gt;
|delay(250);&lt;br /&gt;
|&lt;br /&gt;
|sleep(1)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Variable&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Class&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Shared by all instances of a class&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;@@URL = &amp;#039;www.mysite.com&amp;#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Variable&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Constant&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Value to stay the same for the duration of the code execution. Changing value will generate warning.&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;const float PI = 3.14;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;URL = &amp;#039;www.mysite.com&amp;#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Variable&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Global&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Shared across the entire program&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;$URL = &amp;#039;www.mysite.com&amp;#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Variable&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Instance&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Belongs to the object itself&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;@URL = &amp;#039;www.mysite.com&amp;#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Variable&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Local&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Only accessible from the block it&amp;#039;s initialize from&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;set myName to &amp;quot;Bob Smith&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;a = 1&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;ma_name=&amp;quot;Bob Smith&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;a = 1&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;Variable&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Pre-defined&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;__FILE__ (Current File) __dir__ (Current Directory) __LINE__ (Current Line)&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;MyFile = __FILE__&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Gregpaskal</name></author>
	</entry>
</feed>