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

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.