Don’t have the link to the code, updating the code snip
import streamlit as st
text = st.text_area('Text to Parse')
if st.button('Submit'):
if text == '':
st.error('empty....')
# won't let me do this
return
# <do something else>
You’re missing what I’m saying here…return only works as part of a function, which isn’t what you are providing here, you are just using if statements.