WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • Return value
  • Print
Pages: [1]   Go Down

Author Topic: Return value  (Read 5240 times)

Offline Shefra

  • Posts: 90
  • Gender: Male
Return value
« on: June 22, 2012, 10:15:02 AM »
Hello, i 'm unfamiliar with droplets and maybe is this question ask before.

Is it possible to add the return value into a variable?

Thanks in advance

Logged

Offline BlackBird

  • Posts: 2573
Re: Return value
« Reply #1 on: June 22, 2012, 10:53:43 AM »
I don't understand what you're after. Can you explain it a little bit more?
Logged
http://wbaddons.webbird.de Don't miss this

Offline Shefra

  • Posts: 90
  • Gender: Male
Re: Return value
« Reply #2 on: June 22, 2012, 12:25:29 PM »
Normally when you call a function you can place the return information into a variable like:

$variable = function();

So the the variable $variable get the value of the function
Logged

Offline DarkViper

  • Forum administrator
  • *****
  • Posts: 3087
  • Gender: Female
Re: Return value
« Reply #3 on: June 22, 2012, 01:17:24 PM »
Droplets are not functions to call somewhere in your template.

Droplets are dynamical outputfilters only.
They only generating replacements for a search-replace-function which will be executed in the last moment, before the content is sent to the browser.

If you need functions to return values for advanced use during runtime of your template, then you must use 'snippets'.

See:  Additional functions (code snippets)
Logged
Der blaue Planet - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen

"We need education to cope with digitalization - and NOT the digitalization of education.!"

Tägliches Stoßgebet: Oh Herr, wirf Hirn vom Himmel !

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • Return value
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2