From a8d536c0589b6f2390ba6284ebcd69f188aa5cb6 Mon Sep 17 00:00:00 2001 From: Elara Musayelyan Date: Mon, 30 Oct 2023 15:05:33 -0700 Subject: [PATCH] Use ternary in replybot example --- examples/replybot/replybot.salix.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/replybot/replybot.salix.txt b/examples/replybot/replybot.salix.txt index c89a6db..b8ea83a 100644 --- a/examples/replybot/replybot.salix.txt +++ b/examples/replybot/replybot.salix.txt @@ -1,4 +1,4 @@ -#if(len(matches) > 1):Imgur links were#else:An Imgur link was#!if detected in your #(type). Here are links to the same #if(len(matches) > 1):locations#else:location#!if on alternative frontends that protect your privacy. +#(len(matches) > 1 ? "Imgur links were" : "An Imgur link was") detected in your #(type). Here are links to the same #(len(matches) > 1 ? "locations" : "location") on alternative frontends that protect your privacy. #for(i, match in matches): #if(len(matches) > 1):Link #(i+1):#!if