Skip to content

Commit

Permalink
Update for v1.03
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelbowden committed May 29, 2023
1 parent 086e3e6 commit e694bc1
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion scripts/v6/ch6-12-global-vars3.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if ( [:typeof $WanInterfaces] != "array") do={
:local InterfaceId [/interface ethernet find name=$WanInterface];

:local UpDown "down";
if ([:interface ethernet get $InterfaceId]->"running") do={
if ([/interface ethernet get $InterfaceId]->"running") do={
:set UpDown "up"
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/v6/ch7-01-basic-if.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:put "Hello, I hope you're well.";

# Check if the time is after 6pm (get time in 21:46:04 format)
:local CurrentTime [:system clock get time];
:local CurrentTime [/system clock get time];
:put "The current time is : $CurrentTime";

# Say good evening if time is after 18:00
Expand Down
2 changes: 1 addition & 1 deletion scripts/v6/ch7-03-if-else.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:put "Hello, I hope you're well.";

# Check if the time is after 6pm (get time in 21:46:04 format)
:local CurrentTime [:system clock get time];
:local CurrentTime [/system clock get time];
:put "The current time is : $CurrentTime";

# Say good morning if time is before 12:00
Expand Down
2 changes: 1 addition & 1 deletion scripts/v6/ch7-04-if-else-vars.rsc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# filename: ch7-04-if-else-vars.rsc

# Get the current time
:local CurrentTime [:system clock get time];
:local CurrentTime [/system clock get time];
:put "The current time is : $CurrentTime";

# Check if it's after noon
Expand Down
2 changes: 1 addition & 1 deletion scripts/v6/ch7-05-if-else-vars2.rsc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# filename: ch7-05-if-else-vars2.rsc

# Get the current time
:local CurrentTime [:system clock get time];
:local CurrentTime [/system clock get time];
:put "The current time is : $CurrentTime";

# declare the time of day variable
Expand Down
2 changes: 1 addition & 1 deletion scripts/v6/ch7-06-if-multiple-conditions.rsc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# filename: ch7-06-multiple-conditions.rsc

# Get the current time
:local CurrentTime [:system clock get time];
:local CurrentTime [/system clock get time];
:put "The current time is : $CurrentTime";

# declare the time of day variable
Expand Down
2 changes: 1 addition & 1 deletion scripts/v6/ch7-07-nested-if-statements.rsc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# filename: ch7-07-nested-if-statements.rsc

# Get the current time
:local CurrentTime [:system clock get time];
:local CurrentTime [/system clock get time];
:put "The current time is : $CurrentTime";

# declare the time of day variable
Expand Down
2 changes: 1 addition & 1 deletion scripts/v6/ch7-08-if-else-binary.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

:local UpDown;

if ([:interface ethernet get $InterfaceId]->"running") do={
if ([/interface ethernet get $InterfaceId]->"running") do={
:set UpDown "up";
} else={
:set UpDown "down";
Expand Down
2 changes: 1 addition & 1 deletion scripts/v6/ch7-09-if-binary-simplified.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:local InterfaceId [/interface ethernet find name=$WanInterfaceName];

:local UpDown "down";
if ([:interface ethernet get $InterfaceId]->"running") do={
if ([/interface ethernet get $InterfaceId]->"running") do={
:set UpDown "up"
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/v6/ch8-06-while-infinite.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
:set LoopCounter ($LoopCounter - 1);

# add in a pause to prevent cpu thrashing
delay 1;
:delay 1;
}

# print a message when/if the loop exits
Expand Down
2 changes: 1 addition & 1 deletion scripts/v6/ch8-07-while-with-exit.rsc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# filename: ch8-06-while-with-exit.rsc
# filename: ch8-07-while-with-exit.rsc

# Let's create a loop using "while"

Expand Down
2 changes: 1 addition & 1 deletion scripts/v7/ch6-12-global-vars3.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if ( [:typeof $WanInterfaces] != "array") do={
:local InterfaceId [/interface/ethernet find name=$WanInterface];

:local UpDown "down";
if ([:interface/ethernet get $InterfaceId]->"running") do={
if ([/interface/ethernet get $InterfaceId]->"running") do={
:set UpDown "up"
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/v7/ch7-01-basic-if.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:put "Hello, I hope you're well.";

# Check if the time is after 6pm (get time in 21:46:04 format)
:local CurrentTime [:system clock get time];
:local CurrentTime [/system clock get time];
:put "The current time is : $CurrentTime";

# Say good evening if time is after 18:00
Expand Down
2 changes: 1 addition & 1 deletion scripts/v7/ch7-03-if-else.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:put "Hello, I hope you're well.";

# Check if the time is after 6pm (get time in 21:46:04 format)
:local CurrentTime [:system clock get time];
:local CurrentTime [/system clock get time];
:put "The current time is : $CurrentTime";

# Say good morning if time is before 12:00
Expand Down
2 changes: 1 addition & 1 deletion scripts/v7/ch7-04-if-else-vars.rsc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# filename: ch7-04-if-else-vars.rsc

# Get the current time
:local CurrentTime [:system clock get time];
:local CurrentTime [/system clock get time];
:put "The current time is : $CurrentTime";

# Check if it's after noon
Expand Down
2 changes: 1 addition & 1 deletion scripts/v7/ch7-05-if-else-vars2.rsc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# filename: ch7-05-if-else-vars2.rsc

# Get the current time
:local CurrentTime [:system clock get time];
:local CurrentTime [/system clock get time];
:put "The current time is : $CurrentTime";

# declare the time of day variable
Expand Down
2 changes: 1 addition & 1 deletion scripts/v7/ch7-06-if-multiple-conditions.rsc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# filename: ch7-06-multiple-conditions.rsc

# Get the current time
:local CurrentTime [:system clock get time];
:local CurrentTime [/system clock get time];
:put "The current time is : $CurrentTime";

# declare the time of day variable
Expand Down
2 changes: 1 addition & 1 deletion scripts/v7/ch7-07-nested-if-statements.rsc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# filename: ch7-07-nested-if-statements.rsc

# Get the current time
:local CurrentTime [:system clock get time];
:local CurrentTime [/system clock get time];
:put "The current time is : $CurrentTime";

# declare the time of day variable
Expand Down
2 changes: 1 addition & 1 deletion scripts/v7/ch7-08-if-else-binary.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

:local UpDown;

if ([:interface ethernet get $InterfaceId]->"running") do={
if ([/interface ethernet get $InterfaceId]->"running") do={
:set UpDown "up";
} else={
:set UpDown "down";
Expand Down
2 changes: 1 addition & 1 deletion scripts/v7/ch7-09-if-binary-simplified.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:local InterfaceId [/interface/ethernet find name=$WanInterfaceName];

:local UpDown "down";
if ([:interface/ethernet get $InterfaceId]->"running") do={
if ([/interface/ethernet get $InterfaceId]->"running") do={
:set UpDown "up"
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/v7/ch8-06-while-infinite.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
:set LoopCounter ($LoopCounter - 1);

# add in a pause to prevent cpu thrashing
delay 1;
:delay 1;
}

# print a message when/if the loop exits
Expand Down
2 changes: 1 addition & 1 deletion scripts/v7/ch8-07-while-with-exit.rsc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# filename: ch8-06-while-with-exit.rsc
# filename: ch8-07-while-with-exit.rsc

# Let's create a loop using "while"

Expand Down

0 comments on commit e694bc1

Please sign in to comment.