On 3/3/24 20:01, John Allwine wrote:
If you’re testing with MDI commands, either a local or global variable would
work. If you have a subroutine where you’re setting the value and then writing
an MDI command to print the value, then it would have to be a global variable
because a local variabl
If you’re testing with MDI commands, either a local or global variable would
work. If you have a subroutine where you’re setting the value and then writing
an MDI command to print the value, then it would have to be a global variable
because a local variable would go out of scope.
What is the c
On 3/3/24 17:33, John Allwine wrote:
Store it in another variable first:
# = #[200+#50]
;debug,#
That is what I am trying to do, prolly 20+ times in my present code but
regardless # contains all balls. and its global here, 3 other
machines including the rpi4b running my Sheldon are also beh
Store it in another variable first:
# = #[200+#50]
;debug,#
> On Mar 3, 2024, at 2:55 PM, gene heskett wrote:
>
> preset
> #50=0
> #[200+#50]= random decimal value, like 777.7
> the above syntax does not report any error
> in mdi line
> (debug, #200) returns 777.7
> (debug, #[200+#50])
> gets
preset
#50=0
#[200+#50]= random decimal value, like 777.7
the above syntax does not report any error
in mdi line
(debug, #200) returns 777.7
(debug, #[200+#50])
gets me "#[200+0.00]"
So how do I read it back? A bare #200 works but #[200+0] doesn't.
#[200+1]=.
(debug, #201) returns 5