#!/usr/bin/env expect-lite
# make this puppy run

@3
$blank=

>echo "hello ken"
<ken

?if 1==1?[
>echo "if block"
]
>


; === Nested While loops
; == should repeat "hello ken" 3 times, with 2 "bye now"s inside each outer loop
>
$i=0
[ $i < 3
	>echo "hello ken"
	<ken
	$j=0
	[ $j < 2 
		>echo "bye now"
		>
		+$j
	]
	+$i
]

>
*INTERACT
; === simple loop
$i=0
[ $i < 3
	>echo "hello ken2"
	<ken
	+$i
]


>echo "done"
>
