Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Python Enterprise Application Kit

Name: Anonymous 2007-09-28 6:54 ID:uTAkQTIE

The road less traveled is the way to the top.

http://peak.telecommunity.com/

Name: Anonymous 2007-09-28 8:17 ID:Heaven

someone tell me how fucking ugly this would be in python

    boolean bValidNum = (LuhnCheck(cCard.getCardNumber())
        && validateCCNum(cCard.getCardType(),cCard.getCardNumber()));
    boolean bValidDate = isValidExpDate(cCard.getDate());

    return (bValidNum ? "" : "Invalid Credit Card Number")
           + ((bValidNum && bValidDate) ? "" : " , ")
           + (bValidDate ? "" : "Invalid Expiry Date");

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List