[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlaplus] AND operator



If you use a font like FiraCode with ligatures for technical symbols like this, the code becomes more readable.

 

From: <tlaplus@xxxxxxxxxxxxxxxx> on behalf of Anshu ranjan <a.ranjan.cool@xxxxxxxxx>
Reply to: "tlaplus@xxxxxxxxxxxxxxxx" <tlaplus@xxxxxxxxxxxxxxxx>
Date: Thursday, 11 February 2021 at 00:44
To: tlaplus <tlaplus@xxxxxxxxxxxxxxxx>
Subject: Re: [tlaplus] AND operator

 

Yeah I it was indeed just /\. 
What I was missing is an else statement.. So I added:  else TRUE, and it worked fine.

On Wednesday, February 10, 2021 at 5:41:39 PM UTC-5 diepchi....@xxxxxxxxx wrote:

Hi,

 

I think:  IF  x = .. /\ y = ..  THEN ...

 

Cheers,

DC

 

On Wed, Feb 10, 2021 at 9:31 PM Anshu ranjan <a.ranj...@xxxxxxxxx> wrote:

Hi, I have a beginner's question:
If I want to write the following clause:

IF x=true and y=true

THEN do z

 

How can write this in TLA+? Specifically how do I write the and operator?

--
You received this message because you are subscribed to the Google Groups "tlaplus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+u...@xxxxxxxxxxxxxxxx.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/407236e0-4a88-4ced-b3f2-629a252ddba9n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "tlaplus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+unsubscribe@xxxxxxxxxxxxxxxx.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/772a032b-f03f-4d69-94c2-8464681f2d69n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "tlaplus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+unsubscribe@xxxxxxxxxxxxxxxx.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/01702251-4ACD-414A-AFF6-C0B4711D2C38%40zuhlke.com.