def nvl(*args):
    """
    Return the first argument, or the second argument if the first was not provided. Serves
    as default value selector.
    """
    count = len(args)
    if count != 2:
        raise ValueError('invalid number of arguments')
    if args[0]:
        return args[0]
    return args[1]
