I have a piece of code below which will skip functions dependent on a result. In a function, I have an if found statement, that will make the result true and run through the code below under if. I also have if not found in the function, which will set the result to False, so that the code inside the if statement below is skipped.
while repeatchoice == True:
    code = getproductcode()
    product = checkfile(code)
    result,stocklevel = checkstocklevel(code)
    if result:
        quantity = quantityFunction(product)
        checkquantity = isquantityokay(quantity, stocklevel)
        quantity = int(quantity)
        update = updatestocklevel(quantity, stocklevel, code)
        cost = price(product)
        productcost = calculateproductcost(cost, quantity)
        rline = receiptline(product, quantity, productcost)
        addtoreceipt = append(rline)
        addtototal = appendprice(productcost)
    repeatchoice = repeat(username)
I already have 'if result' in this code, and I need to do the same for another result (skip or run certain functions based on if result is returned true or false)
Is this possible using the variable 'result?'
I am already using 'if result' can I do this again?' So, would it be possible to have another 'if result' under where I am defining the quantity function?
 
    