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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...