Skip to content

Commit 15a0a57

Browse files
committed
fixed error in iterations and forever
1 parent ea6412d commit 15a0a57

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ScrollpHat.psm1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ function Write-PhatString {
4949
[int]$iterations = 0
5050
)
5151
Set-PhatLedsOff
52-
if($forever -OR $iterations > 0)
52+
if($forever -or $iterations -gt 0)
5353
{
54-
$text +=" "
54+
$text +=" "
55+
Write-Host "Added spaces"
5556
}
5657
do
5758
{
@@ -69,7 +70,7 @@ function Write-PhatString {
6970
}
7071
$iterations -=1
7172
# Write-Host $iterations
72-
}while($iterations -lt 0 -OR $forever)
73+
}while($iterations -gt 0 -OR $forever)
7374
}
7475

7576
function Write-PhatChar {

0 commit comments

Comments
 (0)