Jul-12-2018, 03:05 PM
Hi, I have been struggeling to make an if statement based on the condition that a certain number is inside a text.
Text:
{'timestamp': 1531400779308, 'xx': {'xx': 'xx', 'xx': 'xx'}, 'bids': [{'price': 100, 'amount': 1}, {'price': 99, 'amount': 1}]}
So a function that if the price is 99 that the formula continues.
if "99" in text:
print("go")
But i can't really get it right.
Text:
{'timestamp': 1531400779308, 'xx': {'xx': 'xx', 'xx': 'xx'}, 'bids': [{'price': 100, 'amount': 1}, {'price': 99, 'amount': 1}]}
So a function that if the price is 99 that the formula continues.
if "99" in text:
print("go")
But i can't really get it right.