You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by "belliottsmith (via GitHub)" <gi...@apache.org> on 2026/10/06 15:25:53 UTC

Re: [PR] CASSANDRA-21484 - Support IF, ELSE IF, and ELSE for transaction statements [cassandra]

belliottsmith commented on code in PR #4921:
URL: https://github.com/apache/cassandra/pull/4921#discussion_r4197191672


##########
doc/modules/cassandra/pages/developing/cql/transactions.adoc:
##########
@@ -318,12 +318,28 @@ END IF
 IF account_info IS NOT NULL AND account_info.balance > 0 THEN
   -- statements
 END IF
+
+-- IF, ELSE IF, ELSE conditions
+IF account_info IS NOT NULL AND account_info.balance > 0 THEN
+  -- statements
+ELSE IF account_info.balance < 0 THEN
+  -- statements
+ELSE
+  -- statements
+END IF
+
+-- Trailing update after conditions
+IF account_info IS NOT NULL AND account_info.balance > 0 THEN

Review Comment:
   Do we support multiple different IF/ELSE blocks, or is this a copy/paste error?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org