Assira the Black Posted January 25, 2015 Report Posted January 25, 2015 When using the @content, how can you string multiple @content. For example: if(uv('name')== 'Assira the Black'){ print @content[1]; } I would want @content[0] and @content[1] show. I have tried print @content[0] + @content[1] but it does not work and I have tried () around the two. I am a noob at all this and probably missing a simple addition to the code. Any suggestions? Quote
Grido Posted January 25, 2015 Report Posted January 25, 2015 print @content[0] ."<p/>" .@content[1]; I added in the paragraph break, but the key part is putting a full stop before the next fragment Quote
Root Admin Chewett Posted January 26, 2015 Root Admin Report Posted January 26, 2015 Yeah, instead of using + php uses . (full stop) to put things together (technical word is concatanate) If you want to know stuff about MDScript, sometimes you can find it out by googling your problem, and instead of asking for mdscript help, ask for PHP help, since MDScript is primarily PHP. e.g. google "How to add strings together php" Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.