lorston
lorston13mo ago

Hi im trying to filter the supabase but

Hi im trying to filter the supabase but my OR statement does not work, could anyone explain why please\
No description
1 Reply
Gaurav Chadha
Gaurav Chadha13mo ago
Hi @lorston, template literals inherently does not support conditionals. You can use ternary operation instead. Adding an example below:
The result is: ${condition ? 'TrueValue' : 'FalseValue'} and the value is ${value}`;
The result is: ${condition ? 'TrueValue' : 'FalseValue'} and the value is ${value}`;