[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: warning: suggest parenthesis around assignment used as truth value n
From: |
Ian McCallion |
Subject: |
Re: warning: suggest parenthesis around assignment used as truth value near line 119, |
Date: |
Fri, 28 Sep 2018 17:25:23 +0100 |
On Fri, 28 Sep 2018 at 14:47, shivax <address@hidden> wrote:
>
> hi
>
> the error is in the row:
> [d,e,f,g,h,dat,dailyprofit,cc,gapp,ttrange,Ntradess]=TitanAccordaLunghezze(i,countSis,minColon,maxColon,poo,d,e,f,g,h,NomeSystem,dat,dailyprofit,cc,gapp,ttrange,Ntradess);
The error is not in that row, but probably in the
TitanAccordaLunghezze function.
The problem is you have written something like
if a=b
You probably meant
if a==b
Less likely you meant
if a=b
Which performs
a=b;
if a
Octave warns you about the probably error. To avoid the warning you would need:
if (a=b)
Hope this is clear.
Cheers... Ian