Liability of 7 criminals
If they committed robbery jointly then they will all be held liable for the same offence. Section 149 talks about unlawful asseembly and the joint liablity impact of it.
Section 141 in The Indian Penal Code
141. Unlawful assembly.—An assembly of five or more persons is designated an “unlawful assembly”, if the common object of the persons composing that assembly is—
(First) — To overawe by criminal force, or show of criminal force, 1[the Central or any State Government or Parliament or the Legislature of any State], or any public servant in the exercise of the lawful power of such public servant; or
(Second) — To resist the execution of any law, or of any legal process; or
(Third) — To commit any mischief or criminal trespass, or other offence; or
(Fourth) — By means of criminal force, or show of criminal force, to any person, to take or obtain possession of any property, or to deprive any person of the enjoyment of a right of way, or of the use of water or other incorporeal right of which he is in possession or enjoyment, or to enforce any right or supposed right; or
(Fifth) — By means of criminal force, or show of criminal force, to compel any person to do what he is not legally bound to do, or to omit to do what he is legally entitled to do. Explanation.—An assembly which was not unlawful when it assembled, may subsequently become an unlawful assembly.
Section 149 in The Indian Penal Code
149. Every member of unlawful assembly guilty of offence committed in prosecution of common object.—If an offence is committed by any member of an unlawful assembly in prosecution of the common object of that assembly, or such as the members of that assembly knew to be likely to be committed in prosecution of that object, every person who, at the time of the committing of that offence, is a member of the same assembly, is guilty of that offence.