Hello Reader, Thanks for reading it!
I have just started with TigerGraph. I have a very question but I am not able to resolve it.
I want to add the marks of the students until their total crosses to 50. I have written the code but getting the below error.
subs = SELECT a FROM Start:a ACCUM @@Results +=a;
FOREACH i IN @@Results DO
if c<50 THEN @@Results_fin +=i; end;
if c<50 THEN c +=i.score; end;
Error: Error: The attribute of an universal vertex type variable cannot be accessed.
How can I add the scores here?
Thanks in Advance!