lundi 14 septembre 2020

How do I check my ini file and read user input?

So I am trying to make an if statement saying:

while not exit:
    if updater['SETTINGS']['stickers'].value == "any" "demand" "rares" "robux":
        exit = True
    try:
        FindingAsset = FirstJSON['offers'][1]["userAssets"][0]['assetId']
        FindingAsset1 = FirstJSON['offers'][1]["userAssets"][1]['assetId']
        FindingAsset2 = FirstJSON['offers'][1]["userAssets"][2]['assetId']
        FindingAsset3 = FirstJSON['offers'][1]["userAssets"][3]['assetId']
        findmyasset = FirstJSON['offers'][0]["userAssets"][0]['assetId']
        findmyasset1 = FirstJSON['offers'][0]["userAssets"][1]['assetId']
        findmyasset2 = FirstJSON['offers'][0]["userAssets"][2]['assetId']
        findmyasset3 = FirstJSON['offers'][0]["userAssets"][3]['assetId']

And what im trying to do is check if the user put any of the things I wrote which is "any" "demand" "rares" "robux" and if its equal to any of them then make exit = True, im wondering if this is the right way to do it. It doesn't have to be equal to all of them, at least 1 of them enter image description here

Aucun commentaire:

Enregistrer un commentaire