Function including less than symbol

Dear Friends,
I am new in learning FreeFEM++. Can anyone tell me about the meaning of function defined like

func k= 1 + 2*(x<1)*(x>0);

thanks

func k= 1 + 2*(x<1)*(x>0); is equal to

real function k(real x){
if((x>0)&&(x<1))
{
return 3;
}
else
{
return 1;
}
}

Thanks Larik, it helps a lot.
I think instead of 3 , we should have 2 according to the equation.

Perhaps, 1+2=3. But it is not exactly;)

Yes, I got it.
Thanks a lot dear.

Hello Friend,
Can you suggest me the way of computing the system of pde in FreeFem++ with one simple example.