Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_absolutesign

(view raw script w/o annotations or w/e)
1
function scr_absolutesign
scr_absolutesign

function scr_absolutesign(argument0, argument1) //gml_Script_scr_absolutesign { if (sign(argument0) == 0) return argument1; return sign(argument0); }
(argument0, argument1) //gml_Script_scr_absolutesign
2
{
3
    if (sign(argument0) == 0)
4
        return argument1;
5
    return sign(argument0);
6
}