lundi 24 août 2020

Create some if from list of string / Python3

First sorry for my english...

I need your help to fix a difficult. I have a python script to check some parameters, with this parameters I check some conditions but I would like to add the possibility for the user to create an another check from a string... To give you an exemple, I will save some coditions in string than I will split to have the check name, limit value,delay,condition (<,>,=...). And from this list (string splited) I woud like to create an "If 'value' 'condition' 'limit value' " but I don't find how to write this IF from my list.

Thanks for your help.

Aucun commentaire:

Enregistrer un commentaire