Compile error mt4 expression not boolean ? - page 2

 
Billionist:

SAME PROBLEM HERE WITH THIS CODE


Please do not post in all Capital letters. It is considered shouting and very rude.

You should at least highlight the line of code where you are getting the error.

Your bool function should return true or false, instead it is returning 1 or -1.

This means that your function is just the same as

bool Fractal (string M,int P, int shift)
  {
   return(true);
  }   

as it can never return false.

Get into the habit of using true or false instead of numbers for bools.

 
Billionist:

SAME PROBLEM HERE WITH THIS CODE


Change the line

bool Fractal (string M,int P, int shift)

To

int  Fractal (string M,int P, int shift)

I believe this will do the magic 🤗

 
Toto Widyanto #:

hello, can anyone help me? I get a warning when compiling "expression not boolean".

 

that is still from decompiled code!!!

what don't you get about NO DECOMPILED CODE  are you a thief ?