Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
var cols = 12/@boxList.Count(); if (@cols < 3) { cols = 3; }
try
var cols = 12/boxList.Count(); if (cols < 3) { cols = 3; }
Found it. The var had to be encased in paranthises...
var cols = (12/@boxList.Count());if(@cols<3){ cols =3;}
but you should be able to remove '@'
Yup
var cols =(12/@boxList.Count());if(cols<3){ cols = 3;}
Works too
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
changing variable if condition is met.
var cols = 12/@boxList.Count(); if (@cols < 3) { cols = 3; }
Compiler Error Message: CS1026: ) expected
try
Found it. The var had to be encased in paranthises...
but you should be able to remove '@'
Yup
Works too
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.