Sadly, this isn’t possible without some high-level stuff. You can’t do it in blocks, and I don’t think you can do it in Python. There is a thread here -
You can ask @eanders or @jwunderl, they might be able to help you with that. (sorry for the pings)