Subscribe Bookmark RSS Feed

How to prevent a 'JMP - Caution Alert' from popping-up

ambs

Community Trekker

Joined:

Mar 19, 2012

Hi!

I need some help on preventing a popup messge saying:

JMP - Caution Alert

Check script for using an assignment with single = where a test for equality with double == is normally expected.

How can this be disabled?

I am running a script manually and this keeps popping-up. I have no problems in my usage of the 'equal sign'...

Thanks in advance!

4 REPLIES
pmroz

Super User

Joined:

Jun 23, 2011

Can you post the "offending code"?  I'm curious why JMP would mistakenly flag some JSL this way.

ambs

Community Trekker

Joined:

Mar 19, 2012

This is just portion of the code:

if (

i=1,{yscalemin=88,yscalemax=100,yscaleincrement=2,minorticks=1},

i=2,{yscalemin=0,yscalemax=6,yscaleincrement=2,minorticks=1},

{yscalemin=0,yscalemax=3,yscaleincrement=0.5,minorticks=4}

);

I was trying to make a loop wherein the y-axis was supposed to have variable arguments which would depend on the index number of my array.

That was another problem in itself: I can't make the variables within the loop to work properly, so I just decided to make the values constant.

Anyway, knowing how to disable the popup may still be helpful in the future.

mpb

Super User

Joined:

Jun 23, 2011

That fragment should look like this:

if (

i==1,yscalemin=88;yscalemax=100;yscaleincrement=2;minorticks=1,

i==2,yscalemin=0;yscalemax=6;yscaleincrement=2;minorticks=1,

yscalemin=0;yscalemax=3;yscaleincrement=0.5;minorticks=4

);

Notice the double equals which the lack of caused your error message. Notice also the semicolons where you had commas, and the removal of the curly brackets.

ambs

Community Trekker

Joined:

Mar 19, 2012

Thanks a lot!

I can't believe I missed the double equals (though I remember that I also tried that at some point).

Thanks also for emphasizing the semicolons. I learned something new today.

Cheers! =)