# Scripiting questions (Aflex)

**URL:** <https://community.a10networks.com/t/scripiting-questions-aflex/669>\
**Category:** aFleX\
**Created:** [August 11, 2021, 4:43pm UTC](https://community.a10networks.com/t/scripiting-questions-aflex/669 "2021-08-11T16:43:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lsmxlt](https://avatars.discourse-cdn.com/v4/letter/l/f0a364/32.png) [@lsmxlt](https://community.a10networks.com/u/lsmxlt)\
**Post date:** [August 11, 2021, 4:43pm UTC](https://community.a10networks.com/t/scripiting-questions-aflex/669/1 "2021-08-11T16:43:31Z")

</div>

We are planing to use the TCP traffic to autenticate the UDP traffic on our TPS, but we have no idea how to proceed due to lack of documentation  
Its possible to do something like:

```yaml
when UDP_REQUEST {
     if { [TCP::connection] == 1 }
         [UDP::authenticate]
     elseif { [TCP::connection] == 0 }
         drop

```
