💻Python Codes: 👉For Streets (Along)👈 SetOneway(!DIR_TRAVEL!) def SetOnway(value): if value and value.upper() in ('T'): return True return False 👉For Streets (Against)👈 SetOneway(!DIR_TRAVEL!) def SetOnway(value): if value and value.upper() in ('F'): restricted = True return restricted
@JavoxirDovirov8 ай бұрын
good
@JavoxirDovirov8 ай бұрын
Hello there. the video turned out great. a rare subject. I was also interested in that. I'm working on a project, can you help me?
@MapsbyRGD8 ай бұрын
Thank you! Yes, I can help you. Send me an email to mapsbyrgd@gmail.com 😉
@Bowzarama5 ай бұрын
Why do the 2 bits of code differ? In one you return True and False, and in the other you set restricted = True or False. This is a bit confusing - are these 2 methods of doing the same thing or is there a purpose ? thank you..
@MapsbyRGD4 ай бұрын
Hi @bowzarama, I rewatched that part of the video and you are 100% correct. The two code blocks differ and they worked, but they could be, for sure, simplified using a similar version of one of them. I didn't try it, but I believe something like this should work: SetOneway(!DIR_TRAVEL!) def SetOneway(value): if value and value.upper() in ('F'): return True return False