BookmarkSubscribeRSS Feed
Choose Language Hide Translation Bar
ambs
Community Trekker

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

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!

0 Kudos
4 REPLIES 4
pmroz
Super User

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

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

0 Kudos
ambs
Community Trekker

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

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.

0 Kudos
mpb
Super User mpb
Super User

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

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

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

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! =)

0 Kudos