Skip to content
View in the app

A better way to browse. Learn more.

MagicDuel Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

@content

Featured Replies

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?

 

 

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

  • Root Admin

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"

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...

Forum Statistics

  • Total Topics 17.5k
  • Total Posts 182.2k

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.