I am new to google app script. I am attempting to create a basic function. This is what I have so far:
function PRQ(a,b)
{
if(b=4)
{
return a*2
}
else
{
return a*3
}
}
This is the result of with b=4 and b not equal to 4:
a b
5 3 10
5 4 10
It is seeing the request to double the value in "a" but not the request to triple it. What am I doing wrong?