• Scubus@sh.itjust.works
    link
    fedilink
    arrow-up
    13
    ·
    1 year ago

    string taco = variable.ToString()[variable.ToString().Length - 1];

    If (taco == “0” || taco == “2” || taco == “4” || taco == “6” || taco == “8”)

    return true;

    else

    return false;

    Im something of a coding master myself