There is a list variable called "users". You would like to define an output variable with a value of all users in uppercase but only if the name is longer than 3 characters. How to achieve that?
Answer
output "users" {
value = [for name in var.user_names : upper(name) if length(name) > 3]
}