how to use my execute code
# 🤝help
f
hello, i write greeting code but i cant create vairables. where can i use the code?
q
Let's add these to 🦸🏻‍♂️ zubiwat's 🫡 answer:

https://www.youtube.com/watch?v=deElt8Blwh0

https://www.youtube.com/watch?v=mUbejiHGksM

f
const user_timezone = 'America/New_York' // Example timezone try { const current_time = DateTime.now().setZone(user_timezone) let greeting = '' if (current_time.hour >= 5 && current_time.hour < 12) { greeting = 'Good morning!' } else if (current_time.hour >= 12 && current_time.hour < 17) { greeting = 'Good afternoon!' } else { greeting = 'Good evening!' } console.log('Greeting:', greeting) // Set the greeting in the workflow variable workflow.greeting = greeting } catch (error) { console.error('Error determining greeting:', error) } https://cdn.discordapp.com/attachments/1247091995407548498/1247129010429755453/image.png?ex=665ee6e6&is=665d9566&hm=83d0a35fd7038dd059cbe6d0001cd8c45671a13fc64f0a14e86afe52c5995cbe&
error occured here
4 Views