Origin Ver. and Service Release (Select Help-->About Origin): 8.1G SR1
Operating System: win 2000 pro
I have a question about quotes. If I execute the next script
win -t p testplot testplot;
win -T d 123 Data1;
win -t m Testmatrix1 Testmatrix1;
doc -e O
{
if (%H=="Data1")
{type "%H exists"}
}
I get: Data1 exists
If I replace Data1 with Testmatrix1 I get nothing. Assuming the windows are there execute only this:
doc -e O
{
if (%H=="Testmatrix1")
{type "%H exists"}
}
If I replace the double quotes with single ones '' the I get: Testmatrix1 exists
doc -e O
{
if (%H=='Testmatrix1')
{type "%H exists"}
}
So why the double quotes work with all windows except the matrix book? Should I use in this case generally single quotes? In all examples in the labtalk manual are used double quotes:
%M = test;
if (%M == "TEST") type -b "Yes!";