I have a question about for loop in bindings, is this possible?
I tried a for loop for looping through a list of users and check if the user has a role, but it doesn’t work.
I tried the following code:
for x in range(len(self.session.props.auth.user.roles)):
if self.session.props.auth.user.roles == ‘Operator’:
I’m thinking about the performance because it loops continuous, which means the performance degrade, but I don’t know if this is right?