f =
function(x)
{
if(x > 0)
20
else
-1
}
f1 =
function(x)
{
if(x > 0)
return(20)
else
return(-1)
}
f2 =
function(x)
{
return(if(x > 0) 20 else -1)
}
f3 =
function(x)
{
a = if(x > 0)
20
else
-1
a
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.