I want to have a point that belongs or not to a straight line dependanding on a boolean value. I tried
(4.54, -1.82) a + (1 - a) Point(f)
in the definition of my point, where (4.54, -1.82) is the curent random position, a the boolean name, f the straight line. But it does not work.
Any other idea ?
you must know that a boolean is not
0or1, it's taketrueorfalse, so create an integer callednand write this :n=if(a,1,0)then u can complete ur work asotherwise i don't know