Jump to content
Sign in to follow this  
Assira the Black

@content

Recommended Posts

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?

 

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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"

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Forum Statistics

    15,831
    Total Topics
    173,480
    Total Posts
  • Recently Browsing

    No registered users viewing this page.

  • Upcoming Events

    No upcoming events found
  • Recent Event Reviews

×
×
  • Create New...