Right, this should be easy:
How do I combine a field and a variable?
I got something like this:
var myNode = @Model.NodeById(1080);
var testpage = myNode.testpage;
var i = 1;
var mytest = @testpage + @i;
But mytest results only in getting the value of i (which is "1"), instead of "testpage1"
I tried removing the "@" as well (I really have no idea when to use these)
So what should I do? :-D
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/34252-combine-field-and-variable