How to declare a global Boolean variable?
2 posters
PAT Forum :: Support :: Using PAT :: CSP and PCSP Module
Page 1 of 1
How to declare a global Boolean variable?
Dear PAT experts,
it seems that all global variables in CSP# are of integer type, am I right?
Section 3.1.1.2 (Process Definitions) of the PAT (3.5) User Manual says that I can "store the returned value in a global Boolean variable," but how do I declare a one?
Thanks,
Piotr Trojanek
it seems that all global variables in CSP# are of integer type, am I right?
Section 3.1.1.2 (Process Definitions) of the PAT (3.5) User Manual says that I can "store the returned value in a global Boolean variable," but how do I declare a one?
Thanks,
Piotr Trojanek
ptroja- Posts : 1
Join date : 2012-12-19
Re: How to declare a global Boolean variable?
you can just use following to declare a boolean var.
PAT doesn't do the type checking, so you can assign int value to b, but this is the way to declare bool var in PAT.
var b = false;
PAT doesn't do the type checking, so you can assign int value to b, but this is the way to declare bool var in PAT.
var b = false;
ptroja wrote:Dear PAT experts,
it seems that all global variables in CSP# are of integer type, am I right?
Section 3.1.1.2 (Process Definitions) of the PAT (3.5) User Manual says that I can "store the returned value in a global Boolean variable," but how do I declare a one?
Thanks,
Piotr Trojanek
PAT Forum :: Support :: Using PAT :: CSP and PCSP Module
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|